diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2017-10-27 08:51:47 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2017-10-27 08:51:47 +0000 |
| commit | a00c71b8589567f01ae95ee7a1c8263f97126be9 (patch) | |
| tree | 14f60844dbbbabefa9cd8d3ffd71787d7bee13d2 /src | |
| parent | Try to ensure that panels are created with the correct desktop. (diff) | |
| download | inkscape-a00c71b8589567f01ae95ee7a1c8263f97126be9.tar.gz inkscape-a00c71b8589567f01ae95ee7a1c8263f97126be9.zip | |
Enable reopening of Prototype dialog on startup.
Diffstat (limited to 'src')
| -rw-r--r-- | src/desktop.cpp | 1 | ||||
| -rw-r--r-- | src/ui/dialog/prototype.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp index d8f11a09c..2d1aa8829 100644 --- a/src/desktop.cpp +++ b/src/desktop.cpp @@ -1935,6 +1935,7 @@ SPDesktop::show_dialogs() mapVerbPreference.insert(std::make_pair ("Symbols", "/dialogs/symbols") ); mapVerbPreference.insert(std::make_pair ("ObjectsPanel", "/dialogs/objects") ); mapVerbPreference.insert(std::make_pair ("TagsPanel", "/dialogs/tags") ); + mapVerbPreference.insert(std::make_pair ("Prototype", "/dialogs/prototype") ); for (std::map<Glib::ustring, Glib::ustring>::const_iterator iter = mapVerbPreference.begin(); iter != mapVerbPreference.end(); ++iter) { diff --git a/src/ui/dialog/prototype.cpp b/src/ui/dialog/prototype.cpp index b3bf60aab..b7c9f7abf 100644 --- a/src/ui/dialog/prototype.cpp +++ b/src/ui/dialog/prototype.cpp @@ -22,6 +22,8 @@ namespace Inkscape { namespace UI { namespace Dialog { +// Note that in order for a dialog to be restored, it must be listed in SPDesktop::show_dialogs(). + Prototype::Prototype() : // UI::Widget::Panel("Prototype Label", "/dialogs/prototype", SP_VERB_DIALOG_PROTOTYPE, // "Prototype Apply Label", true), |
