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

--- Comment #5 from Tobias Leupold <t...@stonemx.de> ---
Steps to see the issue: Compile and ruin the demo obviously ;-) Then:

- Click "Get dir (native)"
- Choose any directory ("/home/tobias/tmp/9" in my case)
- Click "Get dir (native)" again
- Press Enter

Check the console output:
    Native file chooser triggered
        m_lastNative is ""
         "/home/tobias/tmp/9"
        m_lastNative is now "/home/tobias/tmp/9"
    Native file chooser triggered
        m_lastNative is "/home/tobias/tmp/9"
         "/home/tobias"
        m_lastNative is now "/home/tobias"

First time, "/home/tobias/tmp/9" is returned, as expected.
Second time, "/home/tobias/tmp/9" is pre-selected – but the returned directory
is "/home/tobias".

Interestingly, this does not happen if you click "OK" using the mouse instead
of pressing Enter. In this case, the correct directory is returned.

The second button is to compare with Qt's file dialogs. There, it doesn't
matter if you click "Select" or press Enter. Which is the expected behavior.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to