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:
parent
249a44ab8d
commit
2b9aa1de28
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user