Commit c9d01933 authored by Isa's avatar Isa Committed by Andreas Traczyk

ux: disable combobox if only one account is present

Change-Id: I1d842cc9a1cf64e4c1bf02b4744ff06be78780e3
Reviewed-by: Andreas Traczyk's avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
parent 6e4a39ad
......@@ -176,7 +176,9 @@ void
CurrentAccountComboBox::mousePressEvent(QMouseEvent* mouseEvent)
{
if (!gearLabel_.frameGeometry().contains(mouseEvent->localPos().toPoint())) {
QComboBox::mousePressEvent(mouseEvent);
if (count() > 1) {
QComboBox::mousePressEvent(mouseEvent);
}
} else {
emit settingsButtonClicked();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment