From: gregor herrmann Date: Mon, 15 Aug 2011 12:51:59 +0000 (+0000) Subject: Only add ", $venue" to conference location when $venue is not empty. X-Git-Tag: 0.5.3~4 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/83dc7c6053a1c63a5ba221a9ef1d28adbf75fadf Only add ", $venue" to conference location when $venue is not empty. --- 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") + " - " +