]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBibtex.cpp
Generalize starred cite commands
[lyx.git] / src / frontends / qt4 / GuiBibtex.cpp
index 2a9eefac2fed9a853e7f7a772bcdbda866f8840d..8c35ced0506731d0b262045906450898b7a9a2a3 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "insets/InsetBibtex.h"
 
+#include "support/debug.h"
 #include "support/ExceptionMessage.h"
 #include "support/FileName.h"
 #include "support/filetools.h" // changeExtension
@@ -328,10 +329,10 @@ void GuiBibtex::updateContents()
 
        docstring const & btprint = params_["btprint"];
        int btp = 0;
-       if ((bibtopic && btprint == "btPrintNotCited") ||
-          (!bibtopic && btprint == "btPrintAll"))
+       if ((bibtopic && btprint == from_ascii("btPrintNotCited")) ||
+          (!bibtopic && btprint == from_ascii("btPrintAll")))
                btp = 1;
-       else if (bibtopic && btprint == "btPrintAll")
+       else if (bibtopic && btprint == from_ascii("btPrintAll"))
                btp = 2;
 
        btPrintCO->setCurrentIndex(btp);