Skip to content

Commit

Permalink
fixed url handler warning on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Mar 20, 2024
1 parent 46ef7ce commit 0be783f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ PSI_EXPORT_FUNC int main(int argc, char *argv[])
// if(!QCA::isSupported(QCA::CAP_SHA1))
// QCA::insertProvider(XMPP::createProviderHash());

QObject::connect(psi, SIGNAL(quit()), &app, SLOT(quit()));
QObject::connect(psi, &PsiMain::quit, &app, &PsiApplication::quit);
psi->useLocalInstance();
int returnValue = QCoreApplication::exec();
delete psi;
Expand Down
1 change: 1 addition & 0 deletions src/psicon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,7 @@ void PsiCon::deinit()
GlobalShortcutManager::clear();

DesktopUtil::unsetUrlHandler("xmpp");
DesktopUtil::unsetUrlHandler("x-psi-atstyle");
}

// will gracefully finish all network activity and other async stuff
Expand Down

0 comments on commit 0be783f

Please sign in to comment.