Commit 0c1c568c authored by Rolf Eike Beer's avatar Rolf Eike Beer
Browse files

Only minimize to tray if user closes the keysmanager window

I neither fully understand what's going on there nor do I like the solution. 
But at least it works for now.

BUG:158995

svn path=/trunk/KDE/kdeutils/kgpg/; revision=805479
parent 2cc9bc3e
......@@ -94,7 +94,7 @@
using namespace KgpgCore;
KeysManager::KeysManager(QWidget *parent)
: KXmlGuiWindow(parent)
: KXmlGuiWindow(parent, 0)
{
new KeyAdaptor(this);
QDBusConnection::sessionBus().registerObject("/KeyInterface", this);
......@@ -1041,9 +1041,9 @@ void KeysManager::closeEvent (QCloseEvent *e)
{
// kapp->ref(); // prevent KXmlGuiWindow from closing the app
// KXmlGuiWindow::closeEvent(e);
e->accept();
// hide();
// e->ignore();
// e->accept();
hide();
e->ignore();
}
void KeysManager::showKeyServer()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment