Skip to content
Snippets Groups Projects
Commit c9d01933 authored by Isa's avatar Isa Committed by Andreas Traczyk
Browse files

ux: disable combobox if only one account is present


Change-Id: I1d842cc9a1cf64e4c1bf02b4744ff06be78780e3
Reviewed-by: default avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
parent 6e4a39ad
No related branches found
No related tags found
No related merge requests found
...@@ -176,7 +176,9 @@ void ...@@ -176,7 +176,9 @@ void
CurrentAccountComboBox::mousePressEvent(QMouseEvent* mouseEvent) CurrentAccountComboBox::mousePressEvent(QMouseEvent* mouseEvent)
{ {
if (!gearLabel_.frameGeometry().contains(mouseEvent->localPos().toPoint())) { if (!gearLabel_.frameGeometry().contains(mouseEvent->localPos().toPoint())) {
if (count() > 1) {
QComboBox::mousePressEvent(mouseEvent); QComboBox::mousePressEvent(mouseEvent);
}
} else { } else {
emit settingsButtonClicked(); emit settingsButtonClicked();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment