Skip to content

Commit afd595b

Browse files
committed
resultstree.cpp: avoid -Wdeprecated-declarations warning
1 parent 35cd258 commit afd595b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

gui/resultstree.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,8 @@ void ResultsTree::startApplication(QStandardItem *target, int application)
812812

813813
const QString cmdLine = QString("%1 %2").arg(program).arg(params);
814814

815-
bool success = QProcess::startDetached(cmdLine);
815+
// this is reported as deprecated in Qt 5.15.2 but no longer in Qt 6
816+
bool success = SUPPRESS_DEPRECATED_WARNING(QProcess::startDetached(cmdLine));
816817
if (!success) {
817818
QString text = tr("Could not start %1\n\nPlease check the application path and parameters are correct.").arg(program);
818819

0 commit comments

Comments
 (0)