Skip to content
Snippets Groups Projects
Verified Commit 410ec008 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix crash in debug code for matrix uri handler

fixes #776
fixes #590
parent 8f64f0bb
No related branches found
No related tags found
No related merge requests found
Pipeline #1984 passed
......@@ -174,7 +174,7 @@ main(int argc, char *argv[])
SingleApplication::Mode::ExcludeAppVersion |
SingleApplication::Mode::SecondaryNotification,
100,
userdata);
userdata == "default" ? "" : userdata);
QCommandLineParser parser;
parser.addHelpOption();
......@@ -199,8 +199,9 @@ main(int argc, char *argv[])
// This check needs to happen _after_ process(), so that we actually print help for --help when
// Nheko is already running.
if (app.isSecondary()) {
nhlog::ui()->info("Sending Matrix URL to main application: {}", matrixUri.toStdString());
// open uri in main instance
std::cout << "Sending Matrix URL to main application: " << matrixUri.toStdString()
<< std::endl;
// open uri in main instance
app.sendMessage(matrixUri.toUtf8());
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment