summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tdeui/tdetoolbar.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/tdeui/tdetoolbar.cpp b/tdeui/tdetoolbar.cpp
index 2eb90a813..7c6902fed 100644
--- a/tdeui/tdetoolbar.cpp
+++ b/tdeui/tdetoolbar.cpp
@@ -859,9 +859,8 @@ void TDEToolBar::setIconText(IconText icontext, bool update)
TQMainWindow *mw = mainWindow();
if ( mw ) {
mw->setUpdatesEnabled( false );
-// mw->setToolBarsMovable( !mw->toolBarsMovable() ); // Old way
-// mw->setToolBarsMovable( !mw->toolBarsMovable() );
- mw->setCentralWidget(mw->centralWidget()); // This is a faster hack
+ mw->setToolBarsMovable( !mw->toolBarsMovable() );
+ mw->setToolBarsMovable( !mw->toolBarsMovable() );
mw->setUpdatesEnabled( true );
}
}
@@ -897,9 +896,8 @@ void TDEToolBar::setIconSize(int size, bool update)
if ( mainWindow() ) {
TQMainWindow *mw = mainWindow();
mw->setUpdatesEnabled( false );
-// mw->setToolBarsMovable( !mw->toolBarsMovable() ); // Old way
-// mw->setToolBarsMovable( !mw->toolBarsMovable() );
- mw->setCentralWidget(mw->centralWidget()); // This is a faster hack
+ mw->setToolBarsMovable( !mw->toolBarsMovable() );
+ mw->setToolBarsMovable( !mw->toolBarsMovable() );
mw->setUpdatesEnabled( true );
}
}