From 73d41d334b4634db0c8d84c985eb026f6bf82f88 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sat, 3 Sep 2016 17:34:43 +0200 Subject: [PATCH] refs #755, removed context menu "Remove DB data" - same can be done with filter (remark: Removing from model bears the risk the data are saved and the removed parts are eventually gone) --- src/blackgui/components/dbmappingcomponent.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/blackgui/components/dbmappingcomponent.cpp b/src/blackgui/components/dbmappingcomponent.cpp index 929641060..9a14ec5d1 100644 --- a/src/blackgui/components/dbmappingcomponent.cpp +++ b/src/blackgui/components/dbmappingcomponent.cpp @@ -879,7 +879,10 @@ namespace BlackGui this->m_stashFiltering = menuActions.addAction(this->m_stashFiltering, CIcons::filter16(), "Auto filtering in DB views (on/off)", CMenuAction::pathStash(), this, { mapComp, &CDbMappingComponent::ps_toggleAutoFiltering }); this->m_stashFiltering->setCheckable(true); this->m_stashFiltering->setChecked(mapComp->m_autoFilterInDbViews); - this->addRemoveDbModels(menuActions); + + // Currently disabled as the same effect can be realized by filtering than + //! \todo remove if not needed in the long term (added 2016-Sep) + // this->addRemoveDbModels(menuActions); this->m_autoStashing = menuActions.addAction(this->m_autoStashing, CIcons::appDbStash16(), "Auto stashing", CMenuAction::pathStash(), this, { mapComp, &CDbMappingComponent::ps_displayAutoStashingDialog }); if (mapComp->m_autoStashDialog && mapComp->m_autoStashDialog->isCompleted()) @@ -903,7 +906,7 @@ namespace BlackGui if (dbModels > 0) { // we have keys and data by which we could delete them from view - const QString msgDelete("Delete " + QString::number(dbModels) + " DB model(s) from " + mapComp->currentTabText()); + const QString msgDelete("Delete " + QString::number(dbModels) + " DB model(s) from '" + mapComp->currentTabText() + "'"); menuActions.addAction(CIcons::delete16(), msgDelete, CMenuAction::pathStash(), nullptr, { mapComp, &CDbMappingComponent::ps_removeDbModelsFromView}); } }