summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-06-08 01:25:18 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-06-08 01:25:18 +0200
commit1c3875353c2be223af4d78b57a774d61218742ee (patch)
treefe43c4e0525c9143a5db73e35e37ac3e4f019c0d /src/main.cpp
parentrekonq 0.9.62 (diff)
downloadrekonq-1c3875353c2be223af4d78b57a774d61218742ee.tar.xz
Add rekonq version to default user agent string
BUG: 293298
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
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);