From e1c6bab5722e6b2f01977ad8c558bc5fae1c3dbe Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 1 Jun 2010 16:48:14 +0200 Subject: Reload page on changed encodings --- src/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mainwindow.cpp') 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(); } -- cgit v1.2.1