forked from qt-creator/qt-creator
Help: Save home page in Qt Creator settings instead of help collection
And do not save the default page anywhere at all. This simplifies the logic, and makes the setting independent of help engine initialization. Change-Id: I264903229e274a0bf25c18b33734d36432aa525f Task-number: QTCREATORBUG-13198 Reviewed-by: Robert Loehning <robert.loehning@digia.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -144,16 +144,7 @@ bool HelpViewer::launchWithExternalApp(const QUrl &url)
|
||||
|
||||
void HelpViewer::home()
|
||||
{
|
||||
const QHelpEngineCore &engine = LocalHelpManager::helpEngine();
|
||||
QString homepage = engine.customValue(QLatin1String("HomePage"),
|
||||
QLatin1String("")).toString();
|
||||
|
||||
if (homepage.isEmpty()) {
|
||||
homepage = engine.customValue(QLatin1String("DefaultHomePage"),
|
||||
Help::Constants::AboutBlank).toString();
|
||||
}
|
||||
|
||||
setSource(homepage);
|
||||
setSource(LocalHelpManager::homePage());
|
||||
}
|
||||
|
||||
void HelpViewer::slotLoadStarted()
|
||||
|
||||
Reference in New Issue
Block a user