commit 4c27c921f0705be412eb8cc55b3de7b41d0bb448
Author: Juergen Spitzmueller <[email protected]>
Date: Sat Sep 10 10:32:40 2016 +0200
Minor amendment to b95262f48772
Just for consistency.
---
src/frontends/qt4/GuiRef.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/frontends/qt4/GuiRef.cpp b/src/frontends/qt4/GuiRef.cpp
index 0d21387..7a1335a 100644
--- a/src/frontends/qt4/GuiRef.cpp
+++ b/src/frontends/qt4/GuiRef.cpp
@@ -270,7 +270,7 @@ void GuiRef::updateContents()
int const thebuffer = theBufferList().bufferNum(buffer().fileName());
// restore the buffer combo setting for new insets
- if (params_["reference"].empty() && restored_buffer_ != -1
+ if (new_inset && restored_buffer_ != -1
&& restored_buffer_ < bufferCO->count() && thebuffer ==
active_buffer_)
bufferCO->setCurrentIndex(restored_buffer_);
else {