Re: extragear/utils/krusader

0 views
Skip to first unread message

Jonas Bähr

unread,
Dec 6, 2009, 2:58:58 PM12/6/09
to krusade...@googlegroups.com

Am 06.12.2009 um 15:47 schrieb Jan Lepper:

> SVN commit 1059399 by janlepper:

[...]

> --- trunk/extragear/utils/krusader/krusader/MountMan/
> kmountmangui.cpp #1059398:1059399
> @@ -353,7 +375,7 @@
> // change the active panel to this mountpoint
> connect((QObject*) this, SIGNAL(refreshPanel(const KUrl &)),
> (QObject*) SLOTS,
> SLOT(refresh(const KUrl &)));
> - emit refreshPanel(KUrl(i->text(2))); // text(2) ? so ugly ...
> + emit refreshPanel(KUrl(getMntPoint(i)));
> disconnect(this, SIGNAL(refreshPanel(const KUrl &)), 0, 0);
> close();
> }
> @@ -462,7 +484,7 @@
> {
> for (QList<fsData>::Iterator it = fileSystems.begin(); it !=
> fileSystems.end(); ++it) {
> // the only thing which is unique is the mount point
> - if ((*it).mntPoint() == item->text(2)) { // text(2) ? ugly
> ugly ugly
> + if ((*it).mntPoint() == getMntPoint(item)) {
> return & (*it);
> }
> }
> @@ -471,7 +493,12 @@
> return 0;
> }
>
> +QString KMountManGUI::getMntPoint(QTreeWidgetItem *item)
> +{
> + return item->text(2); // text(2) ? ugly ugly ugly
> +}
>
> +
> KrMountDetector::KrMountDetector()
> {
> hasMountsChanged();

Nice one ;-)
Reply all
Reply to author
Forward
0 new messages