]> git.street.me.uk Git - andy/viking.git/blobdiff - src/main.c
Expedia now reports download error status.
[andy/viking.git] / src / main.c
index 2331314ab983a4c876f5293070d0d2dc2bfde1d4..e648bd8519e44665897a16c6bd110eb24c721e22 100644 (file)
@@ -25,6 +25,8 @@
 
 #include <string.h>
 
 
 #include <string.h>
 
+#include "modules.h"
+
 #define MAX_WINDOWS 1024
 
 static guint window_count = 0;
 #define MAX_WINDOWS 1024
 
 static guint window_count = 0;
@@ -72,7 +74,6 @@ static void open_window ( VikWindow *vw, const gchar **files )
   if ( newvw )
     while ( *files ) {
       vik_window_open_file ( newvw, *(files++), change_fn );
   if ( newvw )
     while ( *files ) {
       vik_window_open_file ( newvw, *(files++), change_fn );
-      files++;
     }
 }
 
     }
 }
 
@@ -87,6 +88,9 @@ int main( int argc, char *argv[] )
 
   gtk_init (&argc, &argv);
 
 
   gtk_init (&argc, &argv);
 
+  /* Init modules/plugins */
+  modules_init();
+
   a_mapcache_init ();
   a_background_init ();
 
   a_mapcache_init ();
   a_background_init ();