From: nds Date: Tue, 9 Apr 2013 06:04:57 +0000 (+0000) Subject: The paste enable correction. Fixes a regression in the last commit. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=366555918c22a6068699897c7c2f294c388d8d82;p=modules%2Fgui.git The paste enable correction. Fixes a regression in the last commit. --- diff --git a/src/TableViewer/TableViewer_ViewWindow.cxx b/src/TableViewer/TableViewer_ViewWindow.cxx index 2ee34b46e..efc34b34c 100755 --- a/src/TableViewer/TableViewer_ViewWindow.cxx +++ b/src/TableViewer/TableViewer_ViewWindow.cxx @@ -291,8 +291,8 @@ void TableViewer_ViewWindow::selectionChanged() { QModelIndexList anItems = myTable->getSelectedIndexes(); bool anEnable = anItems.count() > 0; - bool aCopyEnable = anEnable && myCopyLst.count() > 0, - aPasteEnable = anEnable; + bool aCopyEnable = anEnable, + aPasteEnable = anEnable && myCopyLst.count() > 0; QModelIndexList::const_iterator anIt = anItems.begin(), aLast = anItems.end(); int aRow, aCol; for ( anIt = anItems.begin(); anIt != aLast; ++anIt ) {