File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -205,17 +205,18 @@ int main(int argc, char *argv[])
205
205
206
206
#ifdef Q_OS_WIN32
207
207
const static QHash<QString, QString> protocols = {
208
- {QStringLiteral (" dash" ), QStringLiteral (" Dash Protocol" )},
209
- {QStringLiteral (" dash-plugin" ), QStringLiteral (" Dash Plugin Protocol" )}
208
+ {QStringLiteral (" dash" ), QStringLiteral (" URL: Dash Protocol (Zeal) " )},
209
+ {QStringLiteral (" dash-plugin" ), QStringLiteral (" URL: Dash Plugin Protocol (Zeal) " )}
210
210
};
211
211
212
+ if (clParams.registerProtocolHandlers ) {
213
+ registerProtocolHandlers (protocols, clParams.registerProtocolHandlers );
214
+ return EXIT_SUCCESS;
215
+ }
216
+
212
217
if (clParams.unregisterProtocolHandlers ) {
213
218
unregisterProtocolHandlers (protocols);
214
219
return EXIT_SUCCESS;
215
- } else {
216
- registerProtocolHandlers (protocols, clParams.registerProtocolHandlers );
217
- if (clParams.registerProtocolHandlers )
218
- return EXIT_SUCCESS;
219
220
}
220
221
#endif
221
222
You can’t perform that action at this time.
0 commit comments