]> spindle.queued.net Git - midori/commitdiff
Open the default page only if there is no session and no uri on the cli.
authorOri Bernstein <ori@eigenstate.org>
Wed, 2 Jan 2008 06:34:58 +0000 (07:34 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 2 Jan 2008 06:34:58 +0000 (07:34 +0100)
We only want to open a default homepage or blank page if neither
sessions are in use nor any uri is passed on the command line.

src/main.c

index 1edd038ed9e393890fd67d5f99970550c27b3f0c..c5456db861a75996566992a281544b577198e74b 100755 (executable)
@@ -229,7 +229,7 @@ int main(int argc, char** argv)
     }
     g_free(uri);
 
-    if(config->startup != CONFIG_STARTUP_SESSION || xbel_folder_is_empty(_session))
+    if(xbel_folder_is_empty(_session))
     {
         XbelItem* item = xbel_bookmark_new();
         if(config->startup == CONFIG_STARTUP_BLANK)