Only add ", $venue" to conference location when $venue is not empty.
authorgregor herrmann <gregoa@debian.org>
Mon, 15 Aug 2011 12:51:59 +0000 (12:51 +0000)
committergregor herrmann <gregoa@debian.org>
Mon, 15 Aug 2011 12:51:59 +0000 (12:51 +0000)
src/gui/conferenceeditor.cpp

index 60a57a4..910a7d0 100644 (file)
@@ -89,7 +89,7 @@ void ConferenceEditor::itemSelected(const QModelIndex& current, const QModelInde
 
         conferenceTitle->setText(conf.title());
         conferenceSubtitle->setText(conf.subtitle());
-        conferenceWhere->setText(conf.city() + ", " + conf.venue());
+        conferenceWhere->setText(conf.city() + (!conf.venue().isEmpty() ? ", " + conf.venue() : ""));
         conferenceWhen->setText(
                 conf.start().toString("yyyy-MM-dd")
                 + " - " +