From 0851cfc8a01843d977fa19ef9fcb8d34546d6da4 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 23 Oct 2018 13:20:31 +0200 Subject: Fix SingleApplication segfault --- src/browser.cpp | 4 ++-- src/meson.build | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/browser.cpp b/src/browser.cpp index a0b02d8..cf39c4e 100644 --- a/src/browser.cpp +++ b/src/browser.cpp @@ -36,7 +36,7 @@ Browser::Browser(int &argc, char *argv[], bool allowSecondary) : SingleApplication(argc, argv, allowSecondary, SingleApplication::User | SingleApplication::SecondaryNotification | SingleApplication::ExcludeAppVersion) { setApplicationName(CONFIG_POI_NAME); - //setWindowIcon(QIcon(CONFIG_POI_ICON)); + setWindowIcon(QIcon(CONFIG_POI_ICON)); setApplicationVersion(poi_Version); } @@ -133,7 +133,7 @@ void Browser::setup(QVector plugins) if(stylesheet) { QFile f(stylesheet.value()); if(f.open(QIODevice::ReadOnly)) { - //setStyleSheet(f.readAll()); + setStyleSheet(f.readAll()); f.close(); } } diff --git a/src/meson.build b/src/meson.build index 63e7225..52c8d42 100644 --- a/src/meson.build +++ b/src/meson.build @@ -10,9 +10,9 @@ poi_moc = qt5.preprocess( ) poi = executable('poi', install: true, + cpp_args: '-DQAPPLICATION_CLASS=QApplication', dependencies: [dep_qt5, dep_boost, dep_breakpad, dep_SingleApplication, dep_about, dep_addressbar, dep_bookmarks, dep_configuration, dep_downloads, dep_urlfilter, dep_web], - cpp_args : '-DQAPPLICATION_CLASS=QApplication', include_directories: [include, genheader_inc, lib_inc, thirdparty_inc], sources: ['main.cpp', poi_moc, 'browser.cpp', -- cgit v1.2.1