diff options
author | Timothy Pearson <[email protected]> | 2013-05-20 18:32:37 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-05-20 18:32:37 -0500 |
commit | b1c819c3238e94960154915f1ae14131fdb25cf8 (patch) | |
tree | 564ab9310b9568ad261a3f58e3715860132cf072 /tdeui/tdetoolbar.cpp | |
parent | 3b58374eba66a3ff7a9a9dccf4ff72d82feadaff (diff) | |
download | tdelibs-b1c819c3238e94960154915f1ae14131fdb25cf8.tar.gz tdelibs-b1c819c3238e94960154915f1ae14131fdb25cf8.zip |
Fix invalid toolbar data structure size declarations
This cleans up a slew of Valgrind memcheck warnings
Diffstat (limited to 'tdeui/tdetoolbar.cpp')
-rw-r--r-- | tdeui/tdetoolbar.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tdeui/tdetoolbar.cpp b/tdeui/tdetoolbar.cpp index ad28c50f3..2eb90a813 100644 --- a/tdeui/tdetoolbar.cpp +++ b/tdeui/tdetoolbar.cpp @@ -88,6 +88,7 @@ public: m_enableContext = true; + m_parent = NULL; m_xmlguiClient = 0; oldPos = TQt::DockUnmanaged; @@ -225,7 +226,8 @@ TDEToolBar::~TDEToolBar() void TDEToolBar::init( bool readConfig, bool honorStyle ) { - d = new TDEToolBarPrivate; + d = new TDEToolBarPrivate(); + setFullSize( true ); d->m_honorStyle = honorStyle; context = 0; @@ -1915,8 +1917,9 @@ void TDEToolBar::loadState( const TQDomElement &element ) // Apply transparent-toolbar-moving setting (ok, this is global to the mainwindow, // but we do it only if there are toolbars...) // KDE4: move to TDEMainWindow - if ( transparentSetting() != !mw->opaqueMoving() ) + if ( transparentSetting() != !mw->opaqueMoving() ) { mw->setOpaqueMoving( !transparentSetting() ); + } } int TDEToolBar::dockWindowIndex() |