Changeset 280f29b in confclerk_git


Ignore:
Timestamp:
07/28/21 23:37:22 (11 months ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master
Children:
5b7fa79
Parents:
03f38cf
Message:

No lonely comma when city is missing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/conferenceeditor.cpp

    r03f38cf r280f29b  
    9090        conferenceTitle->setText(conf.title());
    9191        conferenceSubtitle->setText(conf.subtitle());
    92         conferenceWhere->setText(conf.city() + (!conf.venue().isEmpty() ? ", " + conf.venue() : ""));
     92        QString where = conf.city();
     93        if (!conf.city().isEmpty() && !conf.venue().isEmpty()) where += ", ";
     94        where += conf.venue();
     95        conferenceWhere->setText(where);
    9396        conferenceWhen->setText(
    9497                conf.start().toString("yyyy-MM-dd")
Note: See TracChangeset for help on using the changeset viewer.