summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/floating-behavior.cpp
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-03-05 09:24:33 +0000
committerThomas Holder <thomas@thomas-holder.de>2019-03-06 21:11:10 +0000
commitb964b6702cda917a006cb5549cfedec1c61f5ef1 (patch)
tree93fed64ec3aa037f6b1a5f4031c514f214cff71e /src/ui/dialog/floating-behavior.cpp
parentFix wmf/emf file opening and embed missing font config data. (diff)
downloadinkscape-b964b6702cda917a006cb5549cfedec1c61f5ef1.tar.gz
inkscape-b964b6702cda917a006cb5549cfedec1c61f5ef1.zip
Remember dialog visibility with the floating dialog behaviour
Fixes https://bugs.launchpad.net/inkscape/+bug/1674155
Diffstat (limited to 'src/ui/dialog/floating-behavior.cpp')
-rw-r--r--src/ui/dialog/floating-behavior.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/dialog/floating-behavior.cpp b/src/ui/dialog/floating-behavior.cpp
index 5c05603ca..6c0185233 100644
--- a/src/ui/dialog/floating-behavior.cpp
+++ b/src/ui/dialog/floating-behavior.cpp
@@ -172,7 +172,10 @@ FloatingBehavior::onShowF12()
}
void
-FloatingBehavior::onShutdown() {}
+FloatingBehavior::onShutdown()
+{
+ _dialog.save_status(!_dialog._user_hidden, 1, GDL_DOCK_TOP); // Make sure 1 == DockItem::FLOATING_STATE
+}
void
FloatingBehavior::onDesktopActivated (SPDesktop *desktop)