Commit 7d9b3c16 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Fix an issue of readability-implicit-bool-cast; adjust for readability

parent 35d419e7
......@@ -170,12 +170,15 @@ extern "C" int Q_DECL_EXPORT kdemain(int argc, char* argv[])
if (app->isSessionRestored()) {
restoreSession(konsoleApp);
} else if (!konsoleApp.newInstance()) {
// Do not finish starting Konsole
} else {
// Do not finish starting Konsole due to:
// 1. An argument was given to just printed info
// 2. An invalid situation ocurred
delete app;
return 0;
const bool continueStarting = (konsoleApp.newInstance() != 0);
if (!continueStarting) {
delete app;
return 0;
}
}
// Since we've allocated the QApplication on the heap for the KDBusService workaround,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment