[Digikam-devel] [Bug 247175] digiKam doesn't exit after closing main window

Michael G. Hansen mike at mghansen.de
Fri Aug 13 23:30:05 BST 2010


https://bugs.kde.org/show_bug.cgi?id=247175


Michael G. Hansen <mike at mghansen.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mike at mghansen.de




--- Comment #18 from Michael G. Hansen <mike mghansen de>  2010-08-14 00:30:01 ---
Adding

QObject::connect(digikam, SIGNAL(destroyed(QObject*)), &app, SLOT(quit()));

to main.cpp exits digikam on close here. I can also write:

app.setQuitOnLastWindowClosed(true);

and digikam exits well. The weird thing is here that according to Qt
documentation, quitOnLastWindowClosed defaults to true...

Anyway, thanks for looking into this!

Michael

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list