From 54792b0b3c34c2af87196cc509fd37bb6a08f83e Mon Sep 17 00:00:00 2001 From: nkv Date: Mon, 24 Mar 2008 09:59:51 +0000 Subject: [PATCH] IPAL 19144 - No toolbar in Gauss Viewer --- src/Qtx/QtxActionToolMgr.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Qtx/QtxActionToolMgr.cxx b/src/Qtx/QtxActionToolMgr.cxx index f234f2dcb..e2c4b2048 100644 --- a/src/Qtx/QtxActionToolMgr.cxx +++ b/src/Qtx/QtxActionToolMgr.cxx @@ -102,8 +102,10 @@ int QtxActionToolMgr::createToolBar( const QString& title, const int tid, QMainW int tbId = -1; for ( ToolBarMap::ConstIterator it = myToolBars.begin(); it != myToolBars.end() && tbId == -1; ++it ) { - if ( it.value().toolBar->windowTitle().toLower() == title.toLower() ) - tbId = it.key(); + // NKV - BUG IPAL19144 - search by toolbar title is done below via find() function + // if ( it.value().toolBar->windowTitle().toLower() == title.toLower() ) + // tbId = it.key(); + if (it.key() == tid) tbId = it.key(); } if ( tbId != -1 ) -- 2.39.2