summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/main.cpp')
-rw-r--r--rbutil/rbutilqt/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/main.cpp b/rbutil/rbutilqt/main.cpp
index 02c1e51d32..16767fc481 100644
--- a/rbutil/rbutilqt/main.cpp
+++ b/rbutil/rbutilqt/main.cpp
@@ -71,7 +71,13 @@ int main( int argc, char ** argv ) {
if(QObject::tr("LTR") == "RTL")
app.setLayoutDirection(Qt::RightToLeft);
+ // keep a list of installed translators. Needed to be able uninstalling them
+ // later again (in case of translation changes)
+ QList<QTranslator*> translators;
+ translators.append(&translator);
+ translators.append(&qttrans);
RbUtilQt window(0);
+ RbUtilQt::translators = translators;
window.show();
// app.connect( &app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()) );