[PATCH] Fix for ticket #844

Lubomir I. Ivanov neolit123 at gmail.com
Sat Mar 21 06:55:16 PDT 2015


On 20 March 2015 at 23:06, Claudiu Olteanu
<olteanu.vasilica.claudiu at gmail.com> wrote:
> Hi there,
>
> Here is a patch which fixes the #844 ticket.

lines 31 and 38 of the patch contain trailing whitespace.
before committing you can use:
git diff --check

- filename = QFileDialog::getSaveFileName(this, tr("Save file as"),
default_filename,
- tr("Subsurface XML files (*.ssrf *.xml *.XML)"));

(1) i know the original wasn't either...

+
+ QFileDialog selection_dialog(NULL, tr("Save file as"), default_filename,
+ tr("Subsurface XML files (*.ssrf *.xml *.XML)"));
+

(2)...but the second line - tr(....) should be preferable indented
with spaces like so:
(should be viewed with a monospace font)

QFileDialog selection_dialog(NULL, tr("Save file as"), default_filename,
                             tr("Subsurface XML files (*.ssrf *.xml *.XML)"));

or with a single tab.

NULL for parent in QFileDialog seems to work, but any reason to change that?
everywhere else in mainwindow.cpp we use "this".

other than these two small remarks, the change seems about right.

lubomir
--


More information about the subsurface mailing list