|
|
@ -529,6 +529,7 @@ void UBDockPalette::setVisible(bool visible) |
|
|
|
|
|
|
|
|
|
|
|
bool UBDockPalette::switchMode(eUBDockPaletteWidgetMode mode) |
|
|
|
bool UBDockPalette::switchMode(eUBDockPaletteWidgetMode mode) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
mLastOpenedTabForMode.insert(mCurrentMode, mpStackWidget->currentIndex()); |
|
|
|
mCurrentMode = mode; |
|
|
|
mCurrentMode = mode; |
|
|
|
bool hasVisibleElements = false; |
|
|
|
bool hasVisibleElements = false; |
|
|
|
//-------------------------------//
|
|
|
|
//-------------------------------//
|
|
|
@ -552,7 +553,7 @@ bool UBDockPalette::switchMode(eUBDockPaletteWidgetMode mode) |
|
|
|
//-------------------------------//
|
|
|
|
//-------------------------------//
|
|
|
|
|
|
|
|
|
|
|
|
if(mRegisteredWidgets.size() > 0) |
|
|
|
if(mRegisteredWidgets.size() > 0) |
|
|
|
showTabWidget(0); |
|
|
|
showTabWidget(mLastOpenedTabForMode.value(mCurrentMode)); |
|
|
|
|
|
|
|
|
|
|
|
update(); |
|
|
|
update(); |
|
|
|
|
|
|
|
|
|
|
|