- params.cparams.preview(fl_get_button(dialog_->check_preview));
-
- string const file = fl_get_input(dialog_->input_filename);
- if (controller().fileExists(file))
- params.cparams.setContents(file);
- else
- params.cparams.setContents("");
+ params.preview(fl_get_button(dialog_->check_preview));
+ params.setContents(getString(dialog_->input_filename));