States of tools are lost when closing rt without opening an image in SETM, Issue 2779
This commit is contained in:
@@ -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 ();
|
||||
}
|
||||
|
Reference in New Issue
Block a user