fixed issue 901

preferencesAboutTextFull
Claudio Valerio 12 years ago
parent 0aa621269d
commit 5bdeae56c6
  1. 3
      src/gui/UBDockPalette.cpp
  2. 2
      src/gui/UBDockPalette.h

@ -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();

@ -176,6 +176,8 @@ protected:
QVector<UBDockPaletteWidget*> mRegisteredWidgets; QVector<UBDockPaletteWidget*> mRegisteredWidgets;
/** The current tab widget */ /** The current tab widget */
QString mCrntTabWidget; QString mCrntTabWidget;
/** Last opened tab index depending on mode */
QMap<eUBDockPaletteWidgetMode,int> mLastOpenedTabForMode;
private slots: private slots:
void onToolbarPosUpdated(); void onToolbarPosUpdated();

Loading…
Cancel
Save