Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
metsma committed Feb 25, 2024
1 parent 8087266 commit 3513865
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/controller/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ Application::Application(int& argc, char** argv, const QString& name) :
QAction* about = menuBar->addMenu(tr("&File"))->addAction(tr("&About"));
about->setMenuRole(QAction::AboutRole);
connect(about, &QAction::triggered, this, [] {
QProcess::startDetached(applicationFilePath());
CFURLRef open = QUrl::fromLocalFile(qApp->applicationFilePath()).toCFURL();
CFURLRef result {};
LSOpenCFURLRef(open, &result);
CFRelease(open);
CFRelease(result);
});
#endif
}
Expand Down

0 comments on commit 3513865

Please sign in to comment.