From 83dc7c6053a1c63a5ba221a9ef1d28adbf75fadf Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Mon, 15 Aug 2011 12:51:59 +0000 Subject: [PATCH] Only add ", $venue" to conference location when $venue is not empty. --- src/gui/conferenceeditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/conferenceeditor.cpp b/src/gui/conferenceeditor.cpp index 60a57a4..910a7d0 100644 --- a/src/gui/conferenceeditor.cpp +++ b/src/gui/conferenceeditor.cpp @@ -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") + " - " + -- 2.30.2