mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix setting and removing registy values for Browser Integration
This commit is contained in:
parent
7d0f89ef46
commit
e5295b4eb0
@ -109,9 +109,7 @@ void HostInstaller::installBrowser(SupportedBrowsers browser,
|
|||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
// Create a registry key
|
// Create a registry key
|
||||||
QSettings settings(getTargetPath(browser), QSettings::NativeFormat);
|
QSettings settings(getTargetPath(browser), QSettings::NativeFormat);
|
||||||
if (!registryEntryFound(settings)) {
|
settings.setValue("Default", getPath(browser));
|
||||||
settings.setValue("Default", getPath(browser));
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
// Always create the script file
|
// Always create the script file
|
||||||
QJsonObject script = constructFile(browser, proxy, location);
|
QJsonObject script = constructFile(browser, proxy, location);
|
||||||
@ -128,9 +126,7 @@ void HostInstaller::installBrowser(SupportedBrowsers browser,
|
|||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
// Remove the registry entry
|
// Remove the registry entry
|
||||||
QSettings settings(getTargetPath(browser), QSettings::NativeFormat);
|
QSettings settings(getTargetPath(browser), QSettings::NativeFormat);
|
||||||
if (registryEntryFound(settings)) {
|
settings.remove("Default");
|
||||||
settings.remove("Default");
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user