From 1c3875353c2be223af4d78b57a774d61218742ee Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 8 Jun 2012 01:25:18 +0200 Subject: Add rekonq version to default user agent string BUG: 293298 --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 3a94ae27..db6bf843 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -183,6 +183,10 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv) Application app; + // set application data + QCoreApplication::setApplicationName(QL1S("rekonq")); + QCoreApplication::setApplicationVersion(REKONQ_VERSION); + if (app.isSessionRestored()) for (int i = 1; MainWindow::canBeRestored(i); i++) app.newMainWindow(false)->restore(i); -- cgit v1.2.1