Skip to content

Commit

Permalink
Added missing gettext init (bsc#1163586)
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Feb 17, 2020
1 parent 5b30b4c commit 9ce0fae
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/YQUI.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
Author: Stefan Hundhammer <sh@suse.de>
Textdomain "qt"
/-*/

#include <sys/param.h> // MAXHOSTNAMELEN
Expand Down Expand Up @@ -72,6 +74,13 @@
#define BUSY_CURSOR_TIMEOUT 200 // milliseconds
#define VERBOSE_EVENT_LOOP 0

#ifdef TEXTDOMAIN
# undef TEXTDOMAIN
#endif

#define TEXTDOMAIN "qt"


using std::string;


Expand Down Expand Up @@ -606,6 +615,8 @@ void YQUI::askSendWidgetID()
QWidget * parent = 0;
YDialog * dialog = YDialog::currentDialog( false ); // doThrow

YQUI::setTextdomain( TEXTDOMAIN );

if ( dialog )
parent = (QWidget *) dialog->widgetRep();

Expand Down

0 comments on commit 9ce0fae

Please sign in to comment.