]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QPreamble.C
Some string(widget->text()) fixes. Weirdness
[lyx.git] / src / frontends / qt2 / QPreamble.C
index 66af4aff4241da1d94089c66916d919a099b26a9..a0ef5391029b0d23faab4b2213b807d7b53454eb 100644 (file)
@@ -3,13 +3,12 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author John Levon 
+ * \author John Levon
  *
  * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
-#include <fstream>
 
 #ifdef __GNUG__
 #pragma implementation
@@ -18,7 +17,7 @@
 #include "gettext.h"
 #include "LyXView.h"
 #include "ControlPreamble.h"
+
 #include "QPreamble.h"
 #include "QPreambleDialog.h"
 #include "Qt2BC.h"
@@ -28,6 +27,7 @@
 
 typedef Qt2CB<ControlPreamble, Qt2DB<QPreambleDialog> > base_class;
 
+
 QPreamble::QPreamble()
        : base_class(_("LaTeX Preamble"))
 {
@@ -52,5 +52,5 @@ void QPreamble::update_contents()
 
 void QPreamble::apply()
 {
-       controller().params() = dialog_->preambleLE->text().latin1();
+       controller().params(dialog_->preambleLE->text().latin1());
 }