]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBranches.cpp
Do not compute caret geometry when we are not ready to do so.
[lyx.git] / src / frontends / qt4 / GuiBranches.cpp
index 6910c5cadd231791e5bd5a69f5c6ec0b5480e9e7..ab91587098bc2c4f3d28ea2df73d0eb7325df729 100644 (file)
@@ -80,10 +80,10 @@ GuiBranches::GuiBranches(QWidget * parent)
 }
 
 
-bool GuiBranches::eventFilter(QObject * obj, QEvent * event) 
+bool GuiBranches::eventFilter(QObject * obj, QEvent * event)
 {
        QEvent::Type etype = event->type();
-       if (etype == QEvent::KeyPress 
+       if (etype == QEvent::KeyPress
                  && obj == newBranchLE
                  && addBranchPB->isEnabled()) {
                QKeyEvent * keyEvent = static_cast<QKeyEvent *>(event);
@@ -224,7 +224,7 @@ void GuiBranches::on_renamePB_pressed()
                        updateView();
 
                        if (!success)
-                               Alert::error(_("Renaming failed"), 
+                               Alert::error(_("Renaming failed"),
                                      _("The branch could not be renamed."));
                        else
                                // emit signal
@@ -352,7 +352,7 @@ void GuiBranches::addUnknown()
 {
        QList<QListWidgetItem *> selItems =
                undef_->branchesLW->selectedItems();
-       
+
        QList<QListWidgetItem *>::const_iterator it = selItems.begin();
        for (; it != selItems.end() ; ++it) {
                QListWidgetItem const * new_branch = *it;