From 7f571711812032f975c72172d8940244b827375f Mon Sep 17 00:00:00 2001 From: uwolfer Date: Fri, 25 Jan 2008 21:12:50 +0000 Subject: [PATCH] do not quit the app when it has been minimized to system tray and a new transfer dialog gets opened and closed again BUG: 156486 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/KDE/kdenetwork@766435 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kget/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kget/mainwindow.cpp b/kget/mainwindow.cpp index 577b56cde..3bf6107cf 100644 --- a/kget/mainwindow.cpp +++ b/kget/mainwindow.cpp @@ -50,6 +50,10 @@ MainWindow::MainWindow(bool showMainwindow, bool startWithoutAnimation, QWidget : KXmlGuiWindow( parent ), m_drop(0), m_dock(0), m_startWithoutAnimation(startWithoutAnimation) { + // do not quit the app when it has been minimized to system tray and a new transfer dialog + // gets opened and closed again. + qApp->setQuitOnLastWindowClosed(false); + // create the model KGet::self( this ); -- 2.11.4.GIT