Review Request 129061: Don't hide not yet shown messagewidgets

Emmanuel Pescosta emmanuelpescosta099 at gmail.com
Wed Sep 28 15:38:43 BST 2016



> On Sept. 28, 2016, 4:17 p.m., Fabian Vogt wrote:
> > AFAICS this approach is not correct. If directory loading takes longer than the message animation, it gets hidden for no reason.

I think that we should not automatically hide error messages when the directory loading has been completed, at least not with the current error message handling. I don't know why and when this audo-hiding code was added.

IMHO hiding error messages only makes sense if we know what kind of error message we hide. But this isn't possible with `KMessageWidget` ATM as far as I know. This would require additional information for each error message (e.g. an enum value like `DirectoryLoadingFailed`, `PastingFailed`, ...) which can then be used for hiding the error message e.g. when reload (call hide with `DirectoryLoadingFailed` and if a message of this type is shown it will be hidden) or another paste action (call hide with `PastingFailed` and if a message of this type is shown it will be hidden) succeeded.


- Emmanuel


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


On Sept. 28, 2016, 4:14 p.m., Elvis Angelaccio wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/129061/
> -----------------------------------------------------------
> 
> (Updated Sept. 28, 2016, 4:14 p.m.)
> 
> 
> Review request for Dolphin.
> 
> 
> Bugs: 357651
>     https://bugs.kde.org/show_bug.cgi?id=357651
> 
> 
> Repository: dolphin
> 
> 
> Description
> -------
> 
> Bug #357651 results in a messagewidget that gets hidden before it's even shown. Since we already have a slot connected to the `directoryLoadingCompleted()` signal, we can use to it to check whether the message widget has finished the animated show (instead of connecting this signal to `KMessageWidget::hide`).
> 
> 
> Diffs
> -----
> 
>   src/dolphinviewcontainer.cpp 1c43fc9 
> 
> Diff: https://git.reviewboard.kde.org/r/129061/diff/
> 
> 
> Testing
> -------
> 
> The messagewidget from bug #357651 is now visible. Refreshing the view still hides a visible messagewidget.
> 
> 
> Thanks,
> 
> Elvis Angelaccio
> 
>

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


More information about the kfm-devel mailing list