~zeller-benjamin/qtcreator-plugin-ubuntu/displayvar

« back to all changes in this revision

Viewing changes to src/ubuntu/device/container/ubuntulocalrunconfiguration.cpp

  • Committer: Benjamin Zeller
  • Date: 2016-08-29 15:39:59 UTC
  • Revision ID: benjamin.zeller@canonical.com-20160829153959-hmr5i65sh3m2xbpd
Give the developer more info on AskUbuntu

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
    }
173
173
 
174
174
    if (!QFile::exists(QString::fromLatin1("/tmp/.X11-unix/X%1").arg(displayNr))) {
175
 
        QMessageBox::warning(Core::ICore::mainWindow(), qApp->applicationName(),
176
 
                             tr("The X11 socket in /tmp/.X11-unix is missing, the application will most likely not run."));
 
175
        QMessageBox msgBox(Core::ICore::mainWindow());
 
176
        msgBox.setWindowTitle(qApp->applicationName());
 
177
        msgBox.setTextFormat(Qt::RichText);   //this is what makes the links clickable
 
178
        msgBox.setText(tr("The X11 socket in /tmp/.X11-unix is missing, the application will most likely not run.<br/><br/>"
 
179
                          "%1")
 
180
                        .arg("<a href=\"http://askubuntu.com/questions/818264/ubuntu-sdk-ide-qxcbconnection-could-not-connect-to-display\">More Info on AskUbuntu.</a>"));
 
181
        msgBox.exec();
177
182
    }
178
183
 
179
184
    if(target()->project()->id() != Constants::UBUNTUPROJECT_ID) {