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

Dimitris Kardarakos dimkard at gmail.com
Thu Feb 18 19:26:48 UTC 2016


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

(Updated Feb. 18, 2016, 8:26 p.m.)


Status
------

This change has been marked as submitted.


Review request for KDE Edu.


Changes
-------

Submitted with commit 229247aa312a1cf6c7b054906bc0936dea799caa by Albert Astals Cid on behalf of Dimitris Kardarakos to branch Applications/15.12.


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/818c7421/attachment.html>


More information about the kde-edu mailing list