X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_FacesPanel.cpp;h=df5c2ddd796d062b33f4722fea73f2a1c6ebf59b;hb=1dfcab3d738e427bea678317e167c587dfbff195;hp=4ce3f489643e306f789eab89cd76cb7e5277761f;hpb=056b4e9bf26b468b2c95189397677c8ad20d54e5;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_FacesPanel.cpp b/src/XGUI/XGUI_FacesPanel.cpp index 4ce3f4896..df5c2ddd7 100644 --- a/src/XGUI/XGUI_FacesPanel.cpp +++ b/src/XGUI/XGUI_FacesPanel.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2020 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -88,10 +88,12 @@ void updateHiddenShapes(Handle(ModuleBase_ResultPrs) thePrs, const TopoDS_ListOf //******************************************************************** XGUI_FacesPanel::XGUI_FacesPanel(QWidget* theParent, XGUI_Workshop* theWorkshop) - : QDockWidget(theParent), myIsActive(false), myWorkshop(theWorkshop) + : QDockWidget(theParent), myWorkshop(theWorkshop), myIsActive(false) { setWindowTitle(tr("Hide Faces")); - QAction* aViewAct = toggleViewAction(); + setObjectName("Hide Faces"); + + MAYBE_UNUSED QAction* aViewAct = toggleViewAction(); setStyleSheet("::title { position: relative; padding-left: 5px; text-align: left center }"); QWidget* aContent = new QWidget(this); @@ -467,7 +469,6 @@ bool XGUI_FacesPanel::processDelete() if (aSelectedIds.empty()) return false; - bool isModified = false; std::set aRestored; std::set::const_iterator anIt; for (anIt = aSelectedIds.begin(); anIt != aSelectedIds.end(); anIt++) { @@ -475,7 +476,6 @@ bool XGUI_FacesPanel::processDelete() if (aRestored.find(aPrs) == aRestored.end()) { aRestored.insert(aPrs); myItems.remove(*anIt); - isModified = true; } } std::map anObjectToShapes;