diff -r 1fc21685e3ea -r ab118b86bc54 texteditor.cpp --- a/texteditor.cpp Mon May 21 13:05:26 2007 +0000 +++ b/texteditor.cpp Wed May 30 15:23:07 2007 +0000 @@ -60,9 +60,9 @@ move (settings.value ( "/satellite/noteeditor/geometry/pos", QPoint (250,50)).toPoint()); if (settings.value ( "/satellite/noteeditor/showWithMain",true).toBool()) - show(); + setShowWithMain (true); else - hide(); + setShowWithMain (false); varFont.fromString( settings.value ("/satellite/noteeditor/fonts/varFont", @@ -100,7 +100,7 @@ settings.setValue( "/satellite/noteeditor/geometry/pos", pos() ); settings.setValue ("/satellite/noteeditor/state",saveState(0)); - settings.setValue( "/satellite/noteeditor/showWithMain",isVisible()); + settings.setValue( "/satellite/noteeditor/showWithMain",showwithmain); QString s; if (actionSettingsFonthintDefault->isOn() ) @@ -122,6 +122,17 @@ return true; } +void TextEditor::setShowWithMain(bool v) +{ + showwithmain=v; +} + +bool TextEditor::showWithMain() +{ + return showwithmain; +} + + void TextEditor::setFontHint (const QString &fh) { if (fh=="fixed") @@ -489,6 +500,7 @@ void TextEditor::closeEvent( QCloseEvent* ce ) { ce->accept(); // TextEditor can be reopened with show() + showwithmain=false; hide(); emit (windowClosed() ); return;