aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2012-06-14 21:11:52 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2012-06-14 21:11:52 +0200
commit3b062ab24ce954c5e4ebcfddb666478237ebe712 (patch)
treeca330c90f23733c9d9a67c147cd3e135f3285ca5 /src
parentc9a0705fcc1759c6a9d75f62d24a759f07e84d96 (diff)
Backed out changeset b79a992b5bcb
about:blank no longer gives focus to Location Noticed by: corvid <corvid@lavabit.com>
Diffstat (limited to 'src')
-rw-r--r--src/dillo.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dillo.cc b/src/dillo.cc
index e6aaf915..ff450fe5 100644
--- a/src/dillo.cc
+++ b/src/dillo.cc
@@ -410,7 +410,11 @@ int main(int argc, char **argv)
if (idx == argc) {
/* No URLs/files on cmdline. Send startup screen */
- a_UIcmd_open_url(bw, prefs.start_page);
+ if (dStrAsciiCasecmp(URL_SCHEME(prefs.start_page), "about") == 0 &&
+ strcmp(URL_PATH(prefs.start_page), "blank") == 0)
+ a_UIcmd_open_url(bw, NULL);
+ else
+ a_UIcmd_open_url(bw, prefs.start_page);
} else {
for (int i = idx; i < argc; i++) {
DilloUrl *start_url = makeStartUrl(argv[i], local);