Commit 5efdbbe6 authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark
Browse files

fix refreshing summary view when settings change

parent e671ce9c
......@@ -460,6 +460,10 @@ void MainWindow::configFilelight()
connect(dialog, &SettingsDialog::canvasIsDirty, m_map, &RadialMap::Widget::refresh);
connect(dialog, &SettingsDialog::mapIsInvalid, m_manager, &ScanManager::emptyCache);
if (m_summary) {
connect(dialog, &SettingsDialog::canvasIsDirty, m_summary, &SummaryWidget::canvasDirtied);
}
dialog->show(); //deletes itself
}
......
......@@ -121,6 +121,7 @@ void SummaryWidget::createDiskMaps()
QWidget *volume = new QWidget(this);
QVBoxLayout *volumeLayout = new QVBoxLayout(volume);
RadialMap::Widget *map = new MyRadialMap(this);
connect(this, &SummaryWidget::canvasDirtied, map, &RadialMap::Widget::refresh);
QWidget *info = new QWidget(this);
info->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
......
......@@ -22,8 +22,9 @@
#ifndef SUMMARYWIDGET_H
#define SUMMARYWIDGET_H
#include <QUrl>
#include "Config.h" // dirty
#include <QUrl>
#include <QWidget>
class Folder;
......@@ -40,6 +41,7 @@ public:
Q_SIGNALS:
void activated(const QUrl&);
void canvasDirtied(const Dirty dirt);
private:
void createDiskMaps();
......
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