diff --git a/src/app/appui.cpp b/src/app/appui.cpp index 82a918e93..2c92e8eb0 100644 --- a/src/app/appui.cpp +++ b/src/app/appui.cpp @@ -41,7 +41,6 @@ void QupZilla::postLaunch() settings.beginGroup("SessionRestore"); bool startingAfterCrash = settings.value("isCrashed",false).toBool(); settings.endGroup(); - qDebug() << "startingaftercrash" << startingAfterCrash; QUrl startUrl; if (m_tryRestore) { diff --git a/src/app/mainapplication.cpp b/src/app/mainapplication.cpp index 1d27e1c47..23b32c548 100644 --- a/src/app/mainapplication.cpp +++ b/src/app/mainapplication.cpp @@ -289,13 +289,11 @@ void MainApplication::quitApplication() m_downloadManager->show(); return; } - m_isClosing = true; - if (m_mainWindows.count() > 0) saveStateSlot(); - qDebug() << __FUNCTION__ << "called"; + qDebug() << "Quitting application..."; QSettings settings(m_activeProfil+"settings.ini", QSettings::IniFormat); settings.beginGroup("SessionRestore"); settings.setValue("isRunning",false); diff --git a/src/main.cpp b/src/main.cpp index df6e976a4..f32cd8511 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,12 +15,11 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * ============================================================ */ - #include #include #include -#include +#include #include "mainapplication.h" int main(int argc, char *argv[]) @@ -34,7 +33,9 @@ int main(int argc, char *argv[]) #endif MainApplication app(argc, argv); - if (app.isExited()) + if (app.isExited()) { + std::cout << "QupZilla already running - activating existing window" << std::endl; return 1; + } return app.exec(); } diff --git a/src/webview/webpage.cpp b/src/webview/webpage.cpp index 281d14a98..19ff185ce 100644 --- a/src/webview/webpage.cpp +++ b/src/webview/webpage.cpp @@ -57,7 +57,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply* reply) qDebug() << reply->errorString(); break; } - qDebug() << "error" << reply->errorString(); + qDebug() << "WebPage::UnsupportedContent error" << reply->errorString(); } void WebPage::setSSLCertificate(QSslCertificate cert)