summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-06-01 16:48:14 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-06-01 16:48:14 +0200
commite1c6bab5722e6b2f01977ad8c558bc5fae1c3dbe (patch)
treea8093717789f3836de699a5415bb9efc5138a55d /src/mainwindow.cpp
parentuhm... a BIG change to fix a tiny bug :( (diff)
downloadrekonq-e1c6bab5722e6b2f01977ad8c558bc5fae1c3dbe.tar.xz
Reload page on changed encodings
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 7133f09e..59af4d42 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1319,7 +1319,8 @@ void MainWindow::setEncoding(QAction *qa)
QString currentCodec = qa->text().toLatin1();
currentCodec = currentCodec.remove('&');
kDebug() << "Setting codec: " << currentCodec;
- currentTab()->page()->settings()->setDefaultTextEncoding(currentCodec);
+ currentTab()->view()->settings()->setDefaultTextEncoding(currentCodec);
+ currentTab()->view()->reload();
}