summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-04-24 15:38:18 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-04-24 15:38:18 (GMT)
commitcbe63e090b0f9151734dd166ab41902cdbdf5ac0 (patch)
tree7529ef0c31d7ef89d78e1e57bd93fd2ffbf97ec5
parentb297ad414d4a3eb84f831783a1273cc9d7e2a101 (diff)
downloadswift-contrib-cbe63e090b0f9151734dd166ab41902cdbdf5ac0.zip
swift-contrib-cbe63e090b0f9151734dd166ab41902cdbdf5ac0.tar.bz2
Don't attempt room config when dismissing the action menu as a non-owner in a MUC.
Resolves: #1080
-rw-r--r--Swift/QtUI/QtChatWindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index 29bf25a..b7ac05f 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -789,7 +789,10 @@ void QtChatWindow::handleActionButtonClicked() {
}
QAction* result = contextMenu.exec(QCursor::pos());
- if (result == changeSubject) {
+ if (result == NULL) {
+ /* Skip processing. Note that otherwise, because the actions could be null they could match */
+ }
+ else if (result == changeSubject) {
bool ok;
QString subject = QInputDialog::getText(this, tr("Change room subject"), tr("New subject:"), QLineEdit::Normal, subject_->text(), &ok);
if (ok) {