]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBranches.cpp
Remove the .aux and .bbl files and update the citation labels
[lyx.git] / src / frontends / qt4 / GuiBranches.cpp
index bf2c5242da7d257588522fc38572352f885f1740..c79a42def221ba4cc45b4d27325ff88ee1b8dad6 100644 (file)
@@ -70,6 +70,8 @@ GuiBranches::GuiBranches(QWidget * parent)
                undef_, SLOT(accept()));
        connect(undef_->cancelPB, SIGNAL(clicked()),
                undef_, SLOT(reject()));
+
+       newBranchLE->setValidator(new NoNewLineValidator(newBranchLE));
 }
 
 void GuiBranches::update(BufferParams const & params)
@@ -104,7 +106,7 @@ void GuiBranches::updateView()
                        coloritem.fill(itemcolor);
                        newItem->setIcon(2, QIcon(coloritem));
                }
-               newItem->setText(3, it->hasFilenameSuffix() ? qt_("Yes") : qt_("No"));
+               newItem->setText(3, it->hasFileNameSuffix() ? qt_("Yes") : qt_("No"));
                // restore selected branch
                if (bname == sel_branch) {
                        branchesTW->setCurrentItem(newItem);
@@ -287,7 +289,7 @@ void GuiBranches::toggleSuffix(QTreeWidgetItem * item)
 
        Branch * branch = branchlist_.find(qstring_to_ucs4(sel_branch));
        if (branch) {
-               branch->setFilenameSuffix(!branch->hasFilenameSuffix());
+               branch->setFileNameSuffix(!branch->hasFileNameSuffix());
                newBranchLE->clear();
                updateView();
        }