mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 08:34:34 +02:00
Hide /Volumes if we made it visible when closing the settings dialog
This commit is contained in:
@@ -278,6 +278,8 @@ SettingsDialog::saveSettings()
|
|||||||
if ( m_restartRequired )
|
if ( m_restartRequired )
|
||||||
QMessageBox::information( 0, tr( "Information" ), tr( "Some changed settings will not take effect until Tomahawk is restarted" ) );
|
QMessageBox::information( 0, tr( "Information" ), tr( "Some changed settings will not take effect until Tomahawk is restarted" ) );
|
||||||
|
|
||||||
|
m_collectionWidgetUi->dirTree->cleanup();
|
||||||
|
|
||||||
TomahawkUtils::NetworkProxyFactory* proxyFactory = TomahawkUtils::proxyFactory();
|
TomahawkUtils::NetworkProxyFactory* proxyFactory = TomahawkUtils::proxyFactory();
|
||||||
if ( !m_advancedWidgetUi->enableProxyCheckBox->isChecked() )
|
if ( !m_advancedWidgetUi->enableProxyCheckBox->isChecked() )
|
||||||
{
|
{
|
||||||
|
@@ -44,6 +44,13 @@ CheckDirModel::CheckDirModel( QWidget* parent )
|
|||||||
}
|
}
|
||||||
|
|
||||||
CheckDirModel::~CheckDirModel()
|
CheckDirModel::~CheckDirModel()
|
||||||
|
{
|
||||||
|
cleanup();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
CheckDirModel::cleanup()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
// reset to previous state
|
// reset to previous state
|
||||||
@@ -190,6 +197,13 @@ CheckDirTree::CheckDirTree( QWidget* parent )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
CheckDirTree::cleanup()
|
||||||
|
{
|
||||||
|
m_dirModel.cleanup();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
CheckDirTree::checkPath( const QString& path, Qt::CheckState state )
|
CheckDirTree::checkPath( const QString& path, Qt::CheckState state )
|
||||||
{
|
{
|
||||||
|
@@ -40,6 +40,7 @@ public:
|
|||||||
void setCheck( const QModelIndex& index, const QVariant& value );
|
void setCheck( const QModelIndex& index, const QVariant& value );
|
||||||
Qt::CheckState getCheck( const QModelIndex& index );
|
Qt::CheckState getCheck( const QModelIndex& index );
|
||||||
|
|
||||||
|
void cleanup();
|
||||||
signals:
|
signals:
|
||||||
void dataChangedByUser( const QModelIndex & index );
|
void dataChangedByUser( const QModelIndex & index );
|
||||||
|
|
||||||
@@ -69,6 +70,7 @@ public:
|
|||||||
QStringList getExclusions();
|
QStringList getExclusions();
|
||||||
QStringList getCheckedPaths();
|
QStringList getCheckedPaths();
|
||||||
|
|
||||||
|
void cleanup();
|
||||||
signals:
|
signals:
|
||||||
void changed();
|
void changed();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user