Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/GroupView.cpp')
-rw-r--r--src/gui/GroupView.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/GroupView.cpp b/src/gui/GroupView.cpp
index 46a269108..04599aaba 100644
--- a/src/gui/GroupView.cpp
+++ b/src/gui/GroupView.cpp
@@ -41,6 +41,11 @@ GroupView::GroupView(Database* db, QWidget* parent)
Q_ARG(QModelIndex, m_model->index(0, 0)));
}
+Group* GroupView::currentGroup()
+{
+ return m_model->groupFromIndex(currentIndex());
+}
+
void GroupView::expandedChanged(const QModelIndex& index)
{
Group* group = m_model->groupFromIndex(index);