In openConfigDialog, moves argc/argv to a higher scope so their lifetime is longer than the lifetime of the QApplication. (My first suggestion of static lifetime would have been wrong.)
In both openConfigDialog and openAboutDialog, makes sure argv is non-empty.
Fixes #2813.
In openConfigDialog, moves argc/argv to a higher scope so their lifetime is longer than the lifetime of the QApplication. (My first suggestion of
static
lifetime would have been wrong.)In both openConfigDialog and openAboutDialog, makes sure argv is non-empty.
Both changes are to conform to Qt's docs.