| Summary: | Calling MarbleWidget::removePlacemarkKey() does nothing on MS Windows | ||
|---|---|---|---|
| Product: | [Applications] marble | Reporter: | Volker Lanz <vl> |
| Component: | general | Assignee: | marble-bugs |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bastianholst, tgridel |
| Priority: | NOR | Keywords: | investigated, triaged |
| Version First Reported In: | unspecified | ||
| Target Milestone: | 1.0 (KDE 4.6) | ||
| Platform: | Compiled Sources | ||
| OS: | Microsoft Windows | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
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. |
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