[Marble-commits] KDE/kdeedu/marble/src
Dennis Nienhüser
earthwings at gentoo.org
Sun Sep 12 22:39:56 CEST 2010
SVN commit 1174564 by nienhueser:
QString::compare returns an integer, not a boolean. Compare against 0, fixes every argument being interpreted as a data path, except data path itself.
M +1 -1 qtmain.cpp
--- trunk/KDE/kdeedu/marble/src/qtmain.cpp #1174563:1174564
@@ -99,7 +99,7 @@
{
marbleDataPath = args.at(i).mid(17);
}
- else if ( arg.compare( "--marbledatapath", Qt::CaseInsensitive ) ) {
+ else if ( arg.compare( "--marbledatapath", Qt::CaseInsensitive ) == 0 ) {
dataPathIndex = i + 1;
marbleDataPath = args.value( dataPathIndex );
++i;
More information about the Marble-commits
mailing list