Reverted accidental TQt commit which broke compilation under Qt3

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1170194 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 5c53de6d11
commit 59521cce70

@ -1214,7 +1214,7 @@ void KApplication::commitData( QSessionManager& sm )
if ( sm.allowsInteraction() ) { if ( sm.allowsInteraction() ) {
TQWidgetList done; TQWidgetList done;
TQWidgetList *list = TQWidgetList(TQApplication::topLevelWidgets()); TQWidgetList *list = TQApplication::topLevelWidgets();
bool canceled = false; bool canceled = false;
TQWidget* w = list->first(); TQWidget* w = list->first();
while ( !canceled && w ) { while ( !canceled && w ) {
@ -1225,7 +1225,7 @@ void KApplication::commitData( QSessionManager& sm )
if ( !canceled ) if ( !canceled )
done.append( w ); done.append( w );
delete list; // one never knows... delete list; // one never knows...
list = TQWidgetList(TQApplication::topLevelWidgets()); list = TQApplication::topLevelWidgets();
w = list->first(); w = list->first();
} else { } else {
w = list->next(); w = list->next();

Loading…
Cancel
Save