diff --git a/src/blackgui/views/applicationinfoview.cpp b/src/blackgui/views/applicationinfoview.cpp index 0a692c7e5..8e6c8c26a 100644 --- a/src/blackgui/views/applicationinfoview.cpp +++ b/src/blackgui/views/applicationinfoview.cpp @@ -25,7 +25,7 @@ namespace BlackGui { const CApplicationInfoList others = CApplicationInfoList::fromOtherSwiftVersionsFromDataDirectories(); this->updateContainer(others); - m_acceptRowSelected = others.size() > 0; + m_acceptRowSelection = others.size() > 0; return others.size(); } } // namespace diff --git a/src/blackgui/views/statusmessageview.cpp b/src/blackgui/views/statusmessageview.cpp index f4797858b..dee1d03b4 100644 --- a/src/blackgui/views/statusmessageview.cpp +++ b/src/blackgui/views/statusmessageview.cpp @@ -24,7 +24,7 @@ namespace BlackGui { m_menus |= MenuClear; this->menuRemoveItems(MenuRefresh | MenuBackend | MenuToggleSelectionMode); - m_acceptRowSelected = true; + m_acceptRowSelection = true; this->standardInit(new CStatusMessageListModel(this)); } diff --git a/src/blackgui/views/viewbase.cpp b/src/blackgui/views/viewbase.cpp index d2aeecf3a..61a9939c7 100644 --- a/src/blackgui/views/viewbase.cpp +++ b/src/blackgui/views/viewbase.cpp @@ -1712,7 +1712,7 @@ namespace BlackGui template void CViewBase::ps_rowSelected(const QModelIndex &index) { - if (!m_acceptRowSelected) { return; } + if (!m_acceptRowSelection) { return; } if (!index.isValid()) { return; } emit objectSelected(CVariant::fromValue(at(index))); } diff --git a/src/blackgui/views/viewbase.h b/src/blackgui/views/viewbase.h index 803fe0a0b..ec8706b39 100644 --- a/src/blackgui/views/viewbase.h +++ b/src/blackgui/views/viewbase.h @@ -250,6 +250,9 @@ namespace BlackGui //! Accept double click selection void acceptDoubleClickSelection(bool accept) { m_acceptDoubleClickSelection = accept; } + //! Accept row selection + void acceptRowSelection(bool accept) { m_acceptRowSelection = accept; } + //! Remove given menu items void menuRemoveItems(Menu menusToRemove); @@ -487,7 +490,7 @@ namespace BlackGui bool m_showingLoadIndicator = false; //!< showing loading indicator bool m_enabledLoadIndicator = true; //!< loading indicator enabled/disabled bool m_acceptClickSelection = false; //!< clicked - bool m_acceptRowSelected = false; //!< selection changed + bool m_acceptRowSelection = false; //!< selection changed bool m_acceptDoubleClickSelection = false; //!< double clicked bool m_displayAutomatically = true; //!< display directly when loaded bool m_enableDeleteSelectedRows = false; //!< selected rows can be deleted