summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtStatusWidget.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Swift/QtUI/QtStatusWidget.cpp b/Swift/QtUI/QtStatusWidget.cpp
index 4801ff9..784c0d4 100644
--- a/Swift/QtUI/QtStatusWidget.cpp
+++ b/Swift/QtUI/QtStatusWidget.cpp
@@ -146,6 +146,18 @@ void QtStatusWidget::handleClicked() {
if (x + width > screenWidth) {
x = screenWidth - width;
}
+ std::vector<StatusShow::Type> types;
+ types.push_back(StatusShow::Online);
+ types.push_back(StatusShow::FFC);
+ types.push_back(StatusShow::Away);
+ types.push_back(StatusShow::XA);
+ types.push_back(StatusShow::DND);
+ types.push_back(StatusShow::None);
+ foreach (StatusShow::Type type, types) {
+ if (statusEdit_->text() == P2QSTRING(StatusShow::typeToFriendlyName(type))) {
+ statusEdit_->setText("");
+ }
+ }
generateList();
height = menu_->sizeHintForRow(0) * menu_->count();