[Xfce4-commits] [apps/xfdashboard] 01/01: Only lookup view by ID when ID is available

noreply at xfce.org noreply at xfce.org
Wed Feb 10 14:20:54 CET 2016


This is an automated email from the git hooks/post-receive script.

nomad pushed a commit to branch master
in repository apps/xfdashboard.

commit 878dfc995349a78ac990ce4f3641edc71850844b
Author: Stephan Haller <nomad at froevel.de>
Date:   Wed Feb 10 14:20:36 2016 +0100

    Only lookup view by ID when ID is available
---
 xfdashboard/stage.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xfdashboard/stage.c b/xfdashboard/stage.c
index edaedb5..26dcd4a 100644
--- a/xfdashboard/stage.c
+++ b/xfdashboard/stage.c
@@ -689,7 +689,7 @@ static void _xfdashboard_stage_on_application_resume(XfdashboardStage *self, gpo
 			/* If we have not to switch to a specific view or if this view cannot be found
 			 * then lookup the configured view in settings by its internal name
 			 */
-			if(!resumeView)
+			if(!resumeView && resumeViewInternalName)
 			{
 				resumeView=xfdashboard_viewpad_find_view_by_id(XFDASHBOARD_VIEWPAD(priv->viewpad), resumeViewInternalName);
 				if(!resumeView) g_warning(_("Cannot switch to unknown view '%s'"), resumeViewInternalName);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list