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
Thu Oct 23 22:22:06 BST 2014


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

(Updated Oct. 23, 2014, 9:22 p.m.)


Status
------

This change has been marked as submitted.


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/20141023/cbb9bbb9/attachment.htm>


More information about the kfm-devel mailing list