mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
osx /volumes tweak
This commit is contained in:
@@ -65,11 +65,12 @@ CheckDirModel::getFileInfoResult()
|
|||||||
{
|
{
|
||||||
// Remove the hidden flag for the /Volumnes folder so all mount points are visible in the default (Q)FileSystemModel
|
// Remove the hidden flag for the /Volumnes folder so all mount points are visible in the default (Q)FileSystemModel
|
||||||
QProcess* p = new QProcess( this );
|
QProcess* p = new QProcess( this );
|
||||||
connect( p, SIGNAL( finished( int, QProcess::ExitStatus ) ), this, SLOT( volumeShowFinished() ) );
|
|
||||||
qDebug() << "Running SetFile:" << QString( "%1 -a v %2" ).arg( m_setFilePath ).arg( s_macVolumePath );
|
qDebug() << "Running SetFile:" << QString( "%1 -a v %2" ).arg( m_setFilePath ).arg( s_macVolumePath );
|
||||||
p->start( QString( "%1 -a v %2" ).arg( m_setFilePath ).arg( s_macVolumePath ) );
|
p->start( QString( "%1 -a v %2" ).arg( m_setFilePath ).arg( s_macVolumePath ) );
|
||||||
connect( p, SIGNAL( readyReadStandardError() ), this, SLOT( processErrorOutput() ) );
|
connect( p, SIGNAL( readyReadStandardError() ), this, SLOT( processErrorOutput() ) );
|
||||||
m_shownVolumes = true;
|
m_shownVolumes = true;
|
||||||
|
|
||||||
|
QTimer::singleShot( 0, this, SLOT( volumeShowFinished() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
p->terminate();
|
p->terminate();
|
||||||
@@ -80,14 +81,6 @@ CheckDirModel::getFileInfoResult()
|
|||||||
void
|
void
|
||||||
CheckDirModel::volumeShowFinished()
|
CheckDirModel::volumeShowFinished()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_MAC
|
|
||||||
QProcess* p = qobject_cast< QProcess* >( sender() );
|
|
||||||
Q_ASSERT( p );
|
|
||||||
qDebug() << "Got output from GetFileInfo:" << p->readAll();
|
|
||||||
|
|
||||||
p->terminate();
|
|
||||||
p->deleteLater();
|
|
||||||
#endif
|
|
||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user