Do not store empty posttext for qualified citations

Fixes: #11308
This commit is contained in:
Juergen Spitzmueller 2018-09-25 13:13:56 +02:00
parent 6745690f9a
commit 90b1345203

View File

@ -733,7 +733,7 @@ vector<docstring> GuiCitation::getPostTexts()
for (int i = 0; i != selected_model_.rowCount(); ++i) {
QStandardItem const * key = selected_model_.item(i, 1);
QStandardItem const * post = selected_model_.item(i, 2);
if (key && post)
if (key && post && !key->text().isEmpty() && !post->text().isEmpty())
res.push_back(qstring_to_ucs4(key->text()) + " " + qstring_to_ucs4(post->text()));
}
return res;