2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Merge pull request #1152 from eduardosm/disable-register-custom-scheme2

Allow to disable 'register custom scheme' functions using a macro
This commit is contained in:
telegramdesktop
2015-10-03 20:01:06 +03:00
3 changed files with 6 additions and 0 deletions

View File

@@ -1165,6 +1165,7 @@ namespace {
}
void psRegisterCustomScheme() {
#ifndef TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME
QString home(_psHomeDir());
if (home.isEmpty()) return;
@@ -1249,6 +1250,7 @@ void psRegisterCustomScheme() {
LOG(("App Error: Could not open '%1' for write").arg(file));
}
}
#endif
}
void psNewVersion() {