From 726e55799ea72e4e92a23535428eea5706ce5f56 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 1 Oct 2016 14:46:47 +0200 Subject: Update free space when event occurs Update free space when we get an inotify event that changes disk space, or when refresh is called. --- shemov.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index 0aa87fd..b43b530 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -128,6 +128,7 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla connect(mFSWidget->dirModel(), SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(setFsFree())); connect(mFSWidget->dirModel(), SIGNAL(layoutChanged()), this, SLOT(setFsFree())); connect(mFSWidget->dirModel(), SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(setFsFree())); + connect(mFSWidget->fileModel(), SIGNAL(fsFreeChanged()), this, SLOT(setFsFree())); connect(this, SIGNAL(configChanged()), mFSWidget->fileView(), SLOT(readConfig())); connect(this, SIGNAL(configChanged()), picViewer, SLOT(readSettings())); connect(this, SIGNAL(configChanged()), c->archiveTreeModel(), SLOT(readConfig())); -- cgit v1.2.3-70-g09d2