From: <ibr...@us...> - 2012-10-05 15:24:47
|
Revision: 4496 http://tora.svn.sourceforge.net/tora/?rev=4496&view=rev Author: ibre5041 Date: 2012-10-05 15:24:36 +0000 (Fri, 05 Oct 2012) Log Message: ----------- toToolWidget switching fix Modified Paths: -------------- branches/tora3/src/core/toworkspace.cpp Modified: branches/tora3/src/core/toworkspace.cpp =================================================================== --- branches/tora3/src/core/toworkspace.cpp 2012-10-05 15:09:22 UTC (rev 4495) +++ branches/tora3/src/core/toworkspace.cpp 2012-10-05 15:24:36 UTC (rev 4496) @@ -100,7 +100,7 @@ if(m_lastWidget == NULL) // 0th tab was added (slotCurrentIndexChanged did nothing) { m_lastWidget = toolWidget; - m_stackedWidget->setCurrentIndex(i.WidgetIndex); + m_stackedWidget->setCurrentWidget(m_lastWidget); toolWidget->setFocus(); emit activeToolChaged(toolWidget); // => toTool::slotWindowActivated } else { @@ -122,7 +122,7 @@ { m_lastWidget = w; int WidgetIndex = m_toolsRegistry.value(w).WidgetIndex; - m_stackedWidget->setCurrentIndex(WidgetIndex); + m_stackedWidget->setCurrentWidget(m_lastWidget); w->setFocus(); emit activeToolChaged(w); // => toTool::slotWindowActivated } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |