Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Apr 30, 2018
1 parent 4032c43 commit 139c46e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -986,8 +986,11 @@ void MainWindow::handleArguments(const QStringList &pArguments)
arguments << stringFromPercentEncoding(argument);
}

if (!arguments.isEmpty() && mPluginManager->corePlugin())
if (!arguments.isEmpty() && mPluginManager->corePlugin()) {
qobject_cast<CoreInterface *>(mPluginManager->corePlugin()->instance())->handleArguments(arguments);
// Note: if the Core plugin is loaded, then it means it supports the
// Core interface, so no need to check anything...
}

// Make sure that our status bar is shown/hidden, depending on its action's
// status
Expand Down

0 comments on commit 139c46e

Please sign in to comment.