Version: unspecified (using Devel) OS: MS Windows In Workout I add a kml file to the marble widget each time the user selected a different activity and remove the previous one. The code looks a bit like this: ----- QFile tempFile(tempFileName()); // tempFileName() is a static method marbleWidget->removePlacemarkKey(tempFileName()); if (!tempFile.open(QIODevice::WriteOnly|QIODevice::Truncate)) return; // ... create new temp file based on selected activity ... tempFile.close(); marbleWidget->addPlacemarkFile(tempFileName()); ----- This works fine on Linux, but the old map is never removed from the MarbleWidget on Windows. Instead, both the old and new one are being shown. Reproducible: Always
To clarify, this is tempFileName(): ----- QString MapDockWidget::tempFileName() const { return QString("%1%2workout-marble-widget-%3.kml") .arg(QDir::tempPath()) .arg(QDir::separator()) .arg(QCoreApplication::applicationPid()); } -----
Hi, could you please test after trunk revision 1213564? I simplified some name looking code for placemark file keys, which may fix that problem.
This bug has had its resolution changed, but accidentally has been left in NEEDSINFO status. I am thus closing this bug and setting the status as RESOLVED to reflect the resolution change.