// Display dialogs.
connect(zoomFactorActionPointer, SIGNAL(triggered()), this, SLOT(getZoomFactorFromUser()));
- // Set the current zoom factor.
- currentZoomFactor = Settings::zoomFactor();
-
- // Initialize the on-the-fly menus, as the slot connections had not been created when MainView was constructed.
- updateOnTheFlyZoomFactor(currentZoomFactor);
- updateOnTheFlySearchEngine(Settings::searchEngine());
-
// Update the status bar with the URL when a link is hovered.
connect(mainViewPointer, SIGNAL(linkHovered(QString)), this, SLOT(updateStatusBar(QString)));
// Setup the GUI based on the privacybrowserui.rc file.
setupGUI();
+
+ // Load the initial webstie.
+ mainViewPointer->loadInitialWebsite();
}
void BrowserWindow::fileNew() const
}
}
-void BrowserWindow::updateOnTheFlyZoomFactor(const double &zoomFactor) const
+void BrowserWindow::updateOnTheFlyZoomFactor(const double &zoomFactor)
{
+ // Set the current zoom factor.
+ currentZoomFactor = Settings::zoomFactor();
+
// Update the zoom factor action text, formatting the double with 2 decimal places.
zoomFactorActionPointer->setText(ki18nc("@action", "Zoom Factor - %1").subs(zoomFactor, 0, '0', 2).toString());
}