aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-03-31 14:47:56 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-03-31 14:47:56 +0200
commit70816685ef4c1cedc5dbaffa9dceeb7a59c95aae (patch)
treea9958da468fe0249a74b4ea71c99312a4f1adf82
parentRemoved unused SSL menu from address bar (diff)
downloadsmolbote-70816685ef4c1cedc5dbaffa9dceeb7a59c95aae.tar.xz
Fix crash when starting a second instance
-rw-r--r--src/browser.h4
-rw-r--r--src/main.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/browser.h b/src/browser.h
index acdf9a3..497050d 100644
--- a/src/browser.h
+++ b/src/browser.h
@@ -60,8 +60,8 @@ private:
QHash<QString, std::shared_ptr<WebEngineProfile>> m_profiles;
std::shared_ptr<WebEngineProfile> m_defaultProfile;
- UrlRequestInterceptor* m_urlRequestInterceptor;
- CookieFilter* m_cookieInterceptor;
+ UrlRequestInterceptor* m_urlRequestInterceptor = nullptr;
+ CookieFilter* m_cookieInterceptor = nullptr;
std::shared_ptr<BookmarksWidget> m_bookmarksManager;
std::shared_ptr<DownloadsWidget> m_downloadManager;
};
diff --git a/src/main.cpp b/src/main.cpp
index 102ac8e..8f0d26d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -70,8 +70,8 @@ int main(int argc, char **argv)
// check for other instances
bool isSingleInstance = instance.bindLocalSocket(parser.value(parser.socketOption));
- qDebug("Connected to local socket %s: %s", qUtf8Printable(instance.serverName()), isSingleInstance ? "ok" : "failed");
if(isSingleInstance) {
+ qDebug("Bound to local socket %s", qUtf8Printable(instance.serverName()));
instance.setConfiguration(config);
}