Review Request 120726: Connect to the Konsole part's currentDirectoryChanged(QString) only after the shell has been set up completely

Frank Reininghaus frank78ac at googlemail.com
Wed Oct 22 18:02:59 BST 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/120726/
-----------------------------------------------------------

Review request for Dolphin.


Bugs: 339502 and 340233
    http://bugs.kde.org/show_bug.cgi?id=339502
    http://bugs.kde.org/show_bug.cgi?id=340233


Repository: kde-baseapps


Description
-------

We listen to Konsole's currentDirectoryChanged(QString) signal to ensure that the view URL is synced to the Terminal Panel if the user enters "cd" commands. Currently, the connection is made before calling

        m_terminal->showShellInDir(url().toLocalFile());
        
and

        changeDir(url());
        
The problem is that these functions may trigger the emission of the signal, but because that is not the result of a "cd" command entered by the user, we should not react to it.

Moving the connection further down in the function fixes https://bugs.kde.org/show_bug.cgi?id=340233 for me, and it makes crashes with backtraces like the one in https://bugs.kde.org/show_bug.cgi?id=339502 impossible.


Diffs
-----

  dolphin/src/panels/terminal/terminalpanel.cpp bfd3002 

Diff: https://git.reviewboard.kde.org/r/120726/diff/


Testing
-------

Fixes https://bugs.kde.org/show_bug.cgi?id=340233 for me. No regressions found so far.


Thanks,

Frank Reininghaus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20141022/8c83d4bf/attachment.htm>


More information about the kfm-devel mailing list