don't delete the tipwidget if the application is closing; there's no point to it (OS will reclaim the mem for us), it has no state to save on destruction and it causes issues when deleted too late (due to the static object deletion)

svn path=/trunk/KDE/kdelibs/; revision=882208
This commit is contained in:
Aaron J. Seigo 2008-11-10 02:01:47 +00:00
parent 249a44ab8d
commit 2b9aa1de28

View File

@ -22,6 +22,7 @@
#include "tooltipmanager.h"
//Qt
#include <QCoreApplication>
#include <QLabel>
#include <QTimer>
#include <QGridLayout>
@ -66,8 +67,9 @@ public :
~ToolTipManagerPrivate()
{
clearTips();
delete tipWidget;
if (!QCoreApplication::closingDown()) {
delete tipWidget;
}
}
void showToolTip();