diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2023-08-21 15:33:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-21 15:33:16 +0100 |
commit | fff378b643dfb4403c2994bbb47976263b146c20 (patch) | |
tree | a89003f9ef7246e589cb601d1ffd274012833f0e /launcher/ui/pages/global | |
parent | fcb436f1f469d6de09a334f3e131b87b09c9821e (diff) | |
parent | d7dadabfbf61a46996d13894ed591d057bb8c1b3 (diff) | |
download | PrismLauncher-fff378b643dfb4403c2994bbb47976263b146c20.tar.gz PrismLauncher-fff378b643dfb4403c2994bbb47976263b146c20.tar.bz2 PrismLauncher-fff378b643dfb4403c2994bbb47976263b146c20.zip |
Merge pull request #1553 from TheKodeToad/list-fixes
A few boring list-related fixes
Diffstat (limited to 'launcher/ui/pages/global')
-rw-r--r-- | launcher/ui/pages/global/AccountListPage.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/ui/pages/global/AccountListPage.cpp b/launcher/ui/pages/global/AccountListPage.cpp index c0bd1607..c95bfabd 100644 --- a/launcher/ui/pages/global/AccountListPage.cpp +++ b/launcher/ui/pages/global/AccountListPage.cpp @@ -86,6 +86,8 @@ AccountListPage::AccountListPage(QWidget* parent) : QMainWindow(parent), ui(new connect(selectionModel, &QItemSelectionModel::selectionChanged, [this]([[maybe_unused]] const QItemSelection& sel, [[maybe_unused]] const QItemSelection& dsel) { updateButtonStates(); }); connect(ui->listView, &VersionListView::customContextMenuRequested, this, &AccountListPage::ShowContextMenu); + connect(ui->listView, &VersionListView::activated, this, + [this](const QModelIndex& index) { m_accounts->setDefaultAccount(m_accounts->at(index.row())); }); connect(m_accounts.get(), &AccountList::listChanged, this, &AccountListPage::listChanged); connect(m_accounts.get(), &AccountList::listActivityChanged, this, &AccountListPage::listChanged); |