diff options
| author | Alvin Penner <penner@vaxxine.com> | 2015-03-10 16:33:37 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2015-03-10 16:33:37 +0000 |
| commit | bf70504072a3e4f5cfefe85dfd66f6f13684498e (patch) | |
| tree | 2091c26001c6f1301e330a8f2ef980353bcc458d /src | |
| parent | Filters. Fix for Bug #790534 (Simulate color blindness/defects?). (diff) | |
| download | inkscape-bf70504072a3e4f5cfefe85dfd66f6f13684498e.tar.gz inkscape-bf70504072a3e4f5cfefe85dfd66f6f13684498e.zip | |
remember status of preview pane in native Windows open dialog. (Bug 1428873)
Fixed bugs:
- https://launchpad.net/bugs/1428873
(bzr r13985)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/dialog/filedialogimpl-win32.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/dialog/filedialogimpl-win32.cpp b/src/ui/dialog/filedialogimpl-win32.cpp index 34339dab2..cafc3be4f 100644 --- a/src/ui/dialog/filedialogimpl-win32.cpp +++ b/src/ui/dialog/filedialogimpl-win32.cpp @@ -44,6 +44,7 @@ #include "filedialog.h" #include "sp-root.h" +#include "preferences.h" #include <zlib.h> #include <cairomm/win32_surface.h> @@ -272,6 +273,9 @@ void FileOpenDialogImplWin32::createFilterMenu() } if (dialogType != EXE_TYPES) { + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + _show_preview = prefs->getBool("/dialogs/open/enable_preview", true); + // Compose the filter string Inkscape::Extension::DB::InputList extension_list; Inkscape::Extension::db.get_input_list(extension_list); @@ -842,6 +846,10 @@ LRESULT CALLBACK FileOpenDialogImplWin32::preview_wnd_proc(HWND hwnd, UINT uMsg, void FileOpenDialogImplWin32::enable_preview(bool enable) { + if (_show_preview != enable) { + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + prefs->setBool("/dialogs/open/enable_preview", enable); + } _show_preview = enable; // Relayout the dialog |
