----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/103858/#review10475 -----------------------------------------------------------
plasma/desktop/shell/controllerwindow.cpp <http://git.reviewboard.kde.org/r/103858/#comment8577> m_ignoreWindowClosed is true when a window with the DoNotCloseController property is closed. so this change means that only if such a window has closed and the new window does not have a DoNotCloseController tag, then the controller will close. when, exactly, is that condition met? basically, this renders it such that opening ANY window in the plasma-desktop process will not close the controller, and that is obviously not what is wanted. a proper fix is probably to check that none of the parent windows also have this property. - Aaron J. Seigo On Feb. 3, 2012, 1 p.m., David Narváez wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://git.reviewboard.kde.org/r/103858/ > ----------------------------------------------------------- > > (Updated Feb. 3, 2012, 1 p.m.) > > > Review request for Plasma. > > > Description > ------- > > This patch makes the controller wait for the ignored window to actually > close. In bug 291075 you can see what happens when you don't: the Browse > window pops, the Controller queries for the Active Window, the Active Window > is not tagged, so the Controller kills all of its children, including the > KIconDialog itself. > > Even after this patch there's still a way to trigger this bug: since we are > only managing a boolean flag, you can chain something like > > openWindowWithTag() -> openWindowWithoutTag() -> openWindowWithTag() > > and then close the last window, which will close the controller. I think the > proper way to manage this is to have a counter of active tagged windows, and > only close when it is 0. > > > This addresses bug 291075. > http://bugs.kde.org/show_bug.cgi?id=291075 > > > Diffs > ----- > > plasma/desktop/shell/controllerwindow.cpp 6f3064f > > Diff: http://git.reviewboard.kde.org/r/103858/diff/diff > > > Testing > ------- > > 1) Click on the Activity Bar plasmoid > 2) Change the icon of an activity > 3) Use Custom Icon > 4) Browse > 5) Select an SVG file > > Before this patch, Plasma would crash on step 4. Notice that, on my setup, > selecting a PNG file would cause the controller to close (no crash, just > close) and the icon wouldn't change. I think I remember being able to set a > PNG file before, so please let me know if this is a problem caused by this > patch. > > > Thanks, > > David Narváez > >
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel