[Marble-bugs] [Bug 249631] New: Calling MarbleWidget::removePlacemarkKey() does nothing on MS Windows

Volker Lanz vl at fidra.de
Tue Aug 31 15:19:01 CEST 2010


https://bugs.kde.org/show_bug.cgi?id=249631

           Summary: Calling MarbleWidget::removePlacemarkKey() does
                    nothing on MS Windows
           Product: marble
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: MS Windows
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: marble-bugs at kde.org
        ReportedBy: vl at fidra.de


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

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Marble-bugs mailing list