Commit c9305fd9 authored by Jan Lepper's avatar Jan Lepper
Browse files

mountman: remove reference to KrSlots

parent b398907f
......@@ -43,6 +43,7 @@ A
#include <kio/job.h>
#include <kio/global.h>
#include <kmountpoint.h>
#include <kurl.h>
// krusader includes
#include <stdlib.h>
......@@ -99,6 +100,12 @@ protected:
// used internally
static KSharedPtr<KMountPoint> findInListByMntPoint(KMountPoint::List &lst, QString value);
void toggleMount(QString mntPoint);
void emitRefreshPanel(const KUrl &url) {
emit refreshPanel(url);
}
signals:
void refreshPanel(const KUrl &);
private:
QString *_actions;
......
......@@ -377,10 +377,7 @@ void KMountManGUI::doubleClicked(QTreeWidgetItem *i)
return; // we don't want to refresh to swap, do we ?
// change the active panel to this mountpoint
connect((QObject*) this, SIGNAL(refreshPanel(const KUrl &)), (QObject*) SLOTS,
SLOT(refresh(const KUrl &)));
emit refreshPanel(KUrl(getMntPoint(i)));
disconnect(this, SIGNAL(refreshPanel(const KUrl &)), 0, 0);
krMtMan.emitRefreshPanel(KUrl(getMntPoint(i)));
close();
}
......
......@@ -90,7 +90,6 @@ protected:
QString getMntPoint(QTreeWidgetItem *item);
signals:
void refreshPanel(const KUrl &);
void finishedGettingSpaceData();
private:
......
......@@ -273,6 +273,7 @@ Krusader::Krusader() : KParts::MainWindow(0,
// create MountMan
KrGlobal::mountMan = new KMountMan(this);
connect(KrGlobal::mountMan, SIGNAL(refreshPanel(const KUrl &)), SLOTS, SLOT(refresh(const KUrl &)));
// create bookman
krBookMan = new KrBookmarkHandler();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment