States of tools are lost when closing rt without opening an image in SETM, Issue 2779

This commit is contained in:
Ingo
2015-05-18 21:45:34 +02:00
parent e407f6e79a
commit a06c7c536a
3 changed files with 6 additions and 6 deletions

View File

@@ -589,7 +589,7 @@ bool RTWindow::on_delete_event(GdkEventAny* event) {
if( bpanel )
bpanel->saveOptions ();
if (isSingleTabMode() || simpleEditor) {
if ((isSingleTabMode() || simpleEditor) && epanel->isRealized()) {
epanel->saveProfile();
epanel->writeOptions ();
}