Review Request 127109: Fix erroneous line when executing via command line

Dimitris Kardarakos dimkard at gmail.com
Thu Feb 18 14:05:05 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127109/
-----------------------------------------------------------

Review request for KDE Edu.


Repository: parley


Description
-------

Fix erroneous line when executing via command line.


Diffs
-----

  src/main.cpp b94866c 

Diff: https://git.reviewboard.kde.org/r/127109/diff/


Testing
-------

Executing parley via command line, with -h argument, the below message is presented.

$ parley -h

QCoreApplication::arguments: Please instantiate the QApplication object first

Usage: parley [options] [file]

Vocabulary Trainer

Options:

  -v, --version              Displays version information.
  -h, --help                 Displays this help.
  --author                   Show author information.
  --license                  Show license information.
  --desktopfile <file name>  The base file name of the desktop entry for this
                             application.
Arguments:
  [file]                     Document file to open

Moving the QApplication initialization to the first line, the erroneous line: 

"QCoreApplication::arguments: Please instantiate the QApplication object first" 

is not displayed.

$ parley -h
Usage: parley [options] [file]
Vocabulary Trainer

Options:
  -v, --version              Displays version information.
  -h, --help                 Displays this help.
  --author                   Show author information.
  --license                  Show license information.
  --desktopfile <file name>  The base file name of the desktop entry for this
                             application.

Arguments:
  [file]                     Document file to open


Thanks,

Dimitris Kardarakos

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20160218/f5f32972/attachment.html>


More information about the kde-edu mailing list