From b737c047206ff7b580df06e0c4f7b7cf67c1c882 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sun, 12 Dec 2010 23:13:50 +0100
Subject: Fixed default action of "Show as X" roster header menu.


diff --git a/Swift/QtUI/QtNameWidget.cpp b/Swift/QtUI/QtNameWidget.cpp
index bbbfe3a..705d8af 100644
--- a/Swift/QtUI/QtNameWidget.cpp
+++ b/Swift/QtUI/QtNameWidget.cpp
@@ -61,7 +61,7 @@ void QtNameWidget::mousePressEvent(QMouseEvent* event) {
 	if (result == showAsJID) {
 		mode = ShowJID;
 	}
-	else {
+	else if (result == showAsNick) {
 		mode = ShowNick;
 	}
 	settings->storeBool("showNickInRosterHeader", mode == ShowNick);
-- 
cgit v0.10.2-6-g49f6