[Marble-commits] KDE/kdeedu/marble/src
Bastian Holst
bastianholst at gmx.de
Thu Apr 1 14:41:38 CEST 2010
SVN commit 1109978 by bholst:
Removing unneeded command line option handling code in Marble
M +2 -12 kdemain.cpp
--- trunk/KDE/kdeedu/marble/src/kdemain.cpp #1109977:1109978
@@ -240,22 +240,12 @@
KApplication app;
KGlobal::locale()->insertCatalog( "marble_qt" );
- QString marbleDataPath;
- int dataPathIndex = 0;
-
- for ( int i = 1; i < argc - 1; ++i ) {
- if ( strcmp( argv[ i ], "--marbleDataPath" ) == 0 ) {
- dataPathIndex = i + 1;
- marbleDataPath = argv[ dataPathIndex ];
- }
- }
-
if ( args->isSet( "debug-info" ) ) {
MarbleDebug::enable = true;
} else {
MarbleDebug::enable = false;
}
-
+
MainWindow *window = new MainWindow();
window->setAttribute( Qt::WA_DeleteOnClose, true );
window->show();
@@ -294,7 +284,7 @@
for ( int i = 0; i < args->count(); ++i ) {
// FIXME: Use openUrl( args->url(i) ) instead?
- if ( QFile::exists( args->arg( i ) ) && i != dataPathIndex )
+ if ( QFile::exists( args->arg( i ) ) )
window->marbleControl()->addPlacemarkFile( args->arg( i ) );
}
More information about the Marble-commits
mailing list