Commit a7886fa4 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

Open current directory instead of Music directory when no file argument.

The Music desktop storage location does not work with Windows 2000.
parent ce307bbe
......@@ -26,7 +26,7 @@
#include "config.h"
#include <QFile>
#include <QDesktopServices>
#include <QDir>
#ifdef CONFIG_USE_KDE
#include <kdeversion.h>
......@@ -74,8 +74,7 @@ int main(int argc, char* argv[])
KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
kid3->openDirectory(args->count() ? args->arg(0) :
QDesktopServices::storageLocation(QDesktopServices::MusicLocation));
kid3->openDirectory(args->count() ? args->arg(0) : QDir::currentPath());
args->clear();
}
}
......@@ -88,7 +87,6 @@ int main(int argc, char* argv[])
#include <QApplication>
#include <QLocale>
#include <QTranslator>
#include <QDir>
#include "kid3.h"
......@@ -136,7 +134,7 @@ int main(int argc, char* argv[])
if (kid3) {
kid3->show();
kid3->openDirectory(argc > 1 ? QFile::decodeName(argv[1]) :
QDesktopServices::storageLocation(QDesktopServices::MusicLocation));
QDir::currentPath());
}
return app.exec();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment