mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Printing: save only if data is changed in template_options
Check if data is changed before saving the new settings. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
d4382c7c4b
commit
7ca311ae85
3 changed files with 14 additions and 5 deletions
|
@ -26,6 +26,12 @@ struct template_options {
|
|||
int color_palette_index;
|
||||
double font_size;
|
||||
double line_spacing;
|
||||
bool operator!=(const template_options &other) const {
|
||||
return other.font_index != font_index
|
||||
|| other.color_palette_index != color_palette_index
|
||||
|| other.font_size != font_size
|
||||
|| other.line_spacing != line_spacing;
|
||||
}
|
||||
};
|
||||
|
||||
// should be based on a custom QPrintDialog class
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue