diff --git a/src/frontends/qt4/QListings.cpp b/src/frontends/qt4/QListings.cpp index 1eb13ead30..7398d5417d 100644 --- a/src/frontends/qt4/QListings.cpp +++ b/src/frontends/qt4/QListings.cpp @@ -337,13 +337,13 @@ void QListings::update_contents() *it = ""; } } else if (prefixIs(*it, "breaklines=")) { - dialog_->breaklinesCB->setChecked(prefixIs(*it, "true")); + dialog_->breaklinesCB->setChecked(contains(*it, "true")); *it = ""; } else if (prefixIs(*it, "showspaces=")) { - dialog_->spaceCB->setChecked(prefixIs(*it, "true")); + dialog_->spaceCB->setChecked(contains(*it, "true")); *it = ""; } else if (prefixIs(*it, "extendedchars=")) { - dialog_->extendedcharsCB->setChecked(prefixIs(*it, "true")); + dialog_->extendedcharsCB->setChecked(contains(*it, "true")); *it = ""; } else if (prefixIs(*it, "caption=")) { string cap = it->substr(8);