Jürgen Spitzmüller schreef:
Pavel Sanda wrote:
> i wonder why filename->setText(current_filename) & QString
current_filename
> = filename->text() gymnastics is needed; isn't this done by
par.filename =
> params_.filename; ?
The rationale is: if you change the filename of an existing graphics
without
applying, and then assign a new group, you want still the _new_
filename in
the dialog.
Furthermore, for new files, params_.filename is empty, so if you assign a
group for a new, unapplied graphic, the filename would be reset to empty.
Jürgen
It is nice to have a new group button, but it is less fun that a group
without any images disappears. Would it be an idea to give a warning
that a certain group becomes empty and ask the user whether he would
like to retain the group or whether the group can be removed indeed (and
add a remember my choice option)?
Vincent