diff --git a/gui/applicationdialog.cpp b/gui/applicationdialog.cpp index d76445a4f..90a102f39 100644 --- a/gui/applicationdialog.cpp +++ b/gui/applicationdialog.cpp @@ -53,11 +53,11 @@ ApplicationDialog::~ApplicationDialog() void ApplicationDialog::Browse() { QString filter; -#ifdef Q_WS_WIN +#ifdef Q_OS_WIN // In Windows (almost) all executables have .exe extension // so it does not make sense to show everything. filter += tr("Executable files (*.exe);;All files(*.*)"); -#endif // Q_WS_WIN +#endif // Q_OS_WIN QString selectedFile = QFileDialog::getOpenFileName(this, tr("Select viewer application"), GetPath(SETTINGS_LAST_APP_PATH), diff --git a/gui/resultstree.cpp b/gui/resultstree.cpp index 7a4b76e6d..cf78ca080 100644 --- a/gui/resultstree.cpp +++ b/gui/resultstree.cpp @@ -624,7 +624,7 @@ void ResultsTree::StartApplication(QStandardItem *target, int application) //Replace (file) with filename QString file = data["file"].toString(); file = QDir::toNativeSeparators(file); -#ifdef Q_WS_WIN +#ifdef Q_OS_WIN file.replace(QString("\\"), QString("\\\\")); #endif qDebug() << "Opening file: " << file; @@ -667,14 +667,14 @@ void ResultsTree::StartApplication(QStandardItem *target, int application) QString program = app.getPath(); // In Windows we must surround paths including spaces with quotation marks. -#ifdef Q_WS_WIN +#ifdef Q_OS_WIN if (program.indexOf(" ") > -1) { if (!program.startsWith('"') && !program.endsWith('"')) { program.insert(0, "\""); program.append("\""); } } -#endif // Q_WS_WIN +#endif // Q_OS_WIN const QString cmdLine = QString("%1 %2").arg(program).arg(params);