Skip to content

Commit 1eee885

Browse files
committedAug 8, 2018
Fix fallback to system tray based notifications
1 parent 43d3870 commit 1eee885

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -704,13 +704,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
704704
}
705705
endProfile();
706706

707-
if ( !( QgsGui::nativePlatformInterface()->capabilities() & QgsNative::NativeDesktopNotifications ) )
708-
{
709-
mTray = new QSystemTrayIcon();
710-
mTray->setIcon( QIcon( QgsApplication::appIconPath() ) );
711-
mTray->hide();
712-
}
713-
714707
// Create the themes folder for the user
715708
startProfile( QStringLiteral( "Creating theme folder" ) );
716709
QgsApplication::createThemeFolder();
@@ -1322,6 +1315,13 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
13221315
QgsGui::instance()->nativePlatformInterface()->hideApplicationProgress();
13231316
} );
13241317

1318+
if ( !( QgsGui::nativePlatformInterface()->capabilities() & QgsNative::NativeDesktopNotifications ) )
1319+
{
1320+
mTray = new QSystemTrayIcon();
1321+
mTray->setIcon( QIcon( QgsApplication::appIconPath() ) );
1322+
mTray->hide();
1323+
}
1324+
13251325
// supposedly all actions have been added, now register them to the shortcut manager
13261326
QgsGui::shortcutsManager()->registerAllChildren( this );
13271327
QgsGui::shortcutsManager()->registerAllChildren( mSnappingWidget );

0 commit comments

Comments
 (0)
Please sign in to comment.