diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-07-29 19:49:50 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-08-15 15:02:04 +0300 |
commit | 1d22bdc08c04d3726154a5975ff5314c4f290c9d (patch) | |
tree | 1fc14ee454a183518682501925a6dd4a2096f4b0 /qt-ui/templateedit.h | |
parent | dd7bae378e6463f5a4125f7b51a41ab6c0407578 (diff) | |
download | subsurface-1d22bdc08c04d3726154a5975ff5314c4f290c9d.tar.gz |
Printing: fix TemplateEdit color selection bug
When choosing a color from the QColorDialog, the TemplateEdit trigger to
change the current selected template to be custom, and then changes the
selected color. When the selected template is changed old template
values are copied to the current template which results in incorrect
behaviour.
This is fixed by checking for the current editting state before setting
the saved palettes as the current used palette.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Diffstat (limited to 'qt-ui/templateedit.h')
-rw-r--r-- | qt-ui/templateedit.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/templateedit.h b/qt-ui/templateedit.h index 15b717f78..5e548ae19 100644 --- a/qt-ui/templateedit.h +++ b/qt-ui/templateedit.h @@ -31,6 +31,7 @@ private slots: private: Ui::TemplateEdit *ui; QButtonGroup *btnGroup; + bool editingCustomColors; struct template_options *templateOptions; struct template_options newTemplateOptions; struct print_options *printOptions; |