mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
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)
This commit is contained in:
committed by
Roland Winklmeier
parent
0df72090ad
commit
73d41d334b
@@ -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});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user