From 87739a2c6fb4d1f09dfc1d7da181ecac56f263e4 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 9 Aug 2017 13:33:00 +0000 Subject: mpris: 'Raise' method implementation git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7374 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/mpris/mpris2/root2object.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/plugins/General/mpris/mpris2/root2object.cpp') diff --git a/src/plugins/General/mpris/mpris2/root2object.cpp b/src/plugins/General/mpris/mpris2/root2object.cpp index 1508546c0..57f0a92b9 100644 --- a/src/plugins/General/mpris/mpris2/root2object.cpp +++ b/src/plugins/General/mpris/mpris2/root2object.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2010-2012 by Ilya Kotov * + * Copyright (C) 2010-2017 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -44,7 +44,7 @@ bool Root2Object::canQuit() const bool Root2Object::canRaise() const { - return false; + return true; } QString Root2Object::desktopEntry() const @@ -85,4 +85,7 @@ void Root2Object::Quit() UiHelper::instance()->exit(); } -void Root2Object::Raise(){} +void Root2Object::Raise() +{ + UiHelper::instance()->showMainWindow(); +} -- cgit v1.2.3-13-gbd6f