[Marble-commits] KDE/kdeedu/marble/src/lib
Thibaut Gridel
tgridel at free.fr
Fri Jan 7 23:04:25 CET 2011
SVN commit 1212677 by tgridel:
fix cancel case
M +3 -2 CurrentLocationWidget.cpp
--- trunk/KDE/kdeedu/marble/src/lib/CurrentLocationWidget.cpp #1212676:1212677
@@ -308,10 +308,11 @@
void CurrentLocationWidgetPrivate::saveTrack()
{
static QString s_dirName = QDir::homePath();
+ QString suggested = s_dirName;
QString fileName = QFileDialog::getSaveFileName(m_widget, QObject::tr("Save Track"), // krazy:exclude=qclasses
- s_dirName.append('/' + QDateTime::currentDateTime().toString("yyyy-MM-dd_hhmmss") + ".kml"),
+ suggested.append('/' + QDateTime::currentDateTime().toString("yyyy-MM-dd_hhmmss") + ".kml"),
QObject::tr("KML File (*.kml)"));
- if ( fileName ) {
+ if ( !fileName.isEmpty() ) {
QFileInfo file( fileName );
s_dirName = file.absolutePath();
m_widget->model()->positionTracking()->saveTrack( fileName );
More information about the Marble-commits
mailing list