> On April 27, 2015, 5:10 p.m., David Faure wrote: > > src/widgets/kpropertiesdialog.cpp, line 279 > > <https://git.reviewboard.kde.org/r/123523/diff/1/?file=363715#file363715line279> > > > > Ouch! A nested event loop! Nasty. Opens the door to unexpected > > reentrancy.... > > > > Not to mention blocking the GUI for a very long time if this is done > > with many urls over a very slow protocol. > > > > Better write a multi-stat job if we don't have one, and let the > > application use that, and open the properties dialog from a slot. > > > > Alternatively, the properties dialog could itself delay showing itself > > until it has stat'ed the urls (using a slot, not a blocking nested event > > loop). > > Emmanuel Pescosta wrote: > Copied the code from KPropertiesDialog(url) incl. the warning from > showDialog(url), but I agree that this > should be fixed. (also for KPropertiesDialog(url)) > > > Better write a multi-stat job if we don't have one > > Ok I'll have a look at it :)
I agree that would be better, but he copied code that was already in place and is being distributed. :) - Aleix ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/123523/#review79577 ----------------------------------------------------------- On April 27, 2015, 1:49 p.m., Emmanuel Pescosta wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://git.reviewboard.kde.org/r/123523/ > ----------------------------------------------------------- > > (Updated April 27, 2015, 1:49 p.m.) > > > Review request for KDE Frameworks. > > > Repository: kio > > > Description > ------- > > Added KPropertiesDialog::KPropertiesDialog(urls) and > KPropertiesDialog::showDialog(urls) as convenience methods for > non-file-manager applications, where you have a list of QUrls rather than a > KFileItemList. > > > Diffs > ----- > > src/widgets/kpropertiesdialog.h 8d98b35 > src/widgets/kpropertiesdialog.cpp 37fa88f > > Diff: https://git.reviewboard.kde.org/r/123523/diff/ > > > Testing > ------- > > > Thanks, > > Emmanuel Pescosta > >
_______________________________________________ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel