summaryrefslogtreecommitdiff
path: root/src/modules/utils/openurl.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-15 17:08:48 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-15 17:08:48 +0000
commit2b49f2b34e0e3cbcda608c07e5cb206c9fa01c9a (patch)
tree7f40603382e8150bacecbea9abbe4d62c9a394ef /src/modules/utils/openurl.cpp
parent41ca3061eb739eb5f929dbbd1f72e3904cb52d5d (diff)
core: tabs over spaces
git-svn-id: http://svn.miranda-ng.org/main/trunk@2316 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/utils/openurl.cpp')
-rw-r--r--src/modules/utils/openurl.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/utils/openurl.cpp b/src/modules/utils/openurl.cpp
index 4caa9fb022..a50ee22e7e 100644
--- a/src/modules/utils/openurl.cpp
+++ b/src/modules/utils/openurl.cpp
@@ -31,8 +31,8 @@ typedef struct {
static void OpenURLThread(void *arg)
{
- TOpenUrlInfo *hUrlInfo = (TOpenUrlInfo*)arg;
- if ( !hUrlInfo->szUrl)
+ TOpenUrlInfo *hUrlInfo = (TOpenUrlInfo*)arg;
+ if ( !hUrlInfo->szUrl)
return;
//wack a protocol on it
@@ -52,15 +52,14 @@ static void OpenURLThread(void *arg)
wsprintf(szResult, _T("http://%s"), hUrlInfo->szUrl);
}
}
-
+
// check user defined browser for opening urls
DBVARIANT dbv;
if (!DBGetContactSettingTString(NULL, "Miranda", "OpenUrlBrowser", &dbv)) {
ShellExecute(NULL, _T("open"), dbv.ptszVal, szResult, NULL, (hUrlInfo->newWindow) ? SW_NORMAL : SW_SHOWDEFAULT);
DBFreeVariant(&dbv);
- } else {
- ShellExecute(NULL, _T("open"), szResult, NULL, NULL, (hUrlInfo->newWindow) ? SW_NORMAL : SW_SHOWDEFAULT);
}
+ else ShellExecute(NULL, _T("open"), szResult, NULL, NULL, (hUrlInfo->newWindow) ? SW_NORMAL : SW_SHOWDEFAULT);
mir_free(szResult);
mir_free(hUrlInfo->szUrl);