Commit 7f2ce08c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: move getDirectoryDialog to a static helper

parent 3f2ef26a
......@@ -358,7 +358,7 @@ void StandardPLPanel::popupAction( QAction *action )
break;
case VLCModelSubInterface::ACTION_ENQUEUEDIR:
temp = THEDP->getDirectoryDialog();
temp = DialogsProvider::getDirectoryDialog( p_intf );
if ( temp.isEmpty() ) return;
a.uris << temp;
action->setData( QVariant::fromValue( a ) );
......
......@@ -514,9 +514,10 @@ static void openDirectory( intf_thread_t *p_intf, bool pl, bool go )
Open::openMRL( p_intf, uri, go, pl );
}
QString DialogsProvider::getDirectoryDialog()
QString DialogsProvider::getDirectoryDialog( intf_thread_t *p_intf )
{
QString dir = QFileDialog::getExistingDirectory( NULL, qtr( I_OP_DIR_WINTITLE ), p_intf->p_sys->filepath );
QString dir = QFileDialog::getExistingDirectory( NULL,
qtr( I_OP_DIR_WINTITLE ), p_intf->p_sys->filepath );
if( dir.isEmpty() ) return QString();
......
......@@ -90,6 +90,8 @@ public:
EXT_FILTER_PLAYLIST,
const QString& path = QString() );
bool isDying() { return b_isDying; }
static QString getDirectoryDialog( intf_thread_t *p_intf);
protected:
QSignalMapper *menusMapper;
QSignalMapper *menusUpdateMapper;
......@@ -143,7 +145,6 @@ public slots:
void openNetDialog();
void openCaptureDialog();
QString getDirectoryDialog();
void PLAppendDialog( int tab = OPEN_FILE_TAB );
void MLAppendDialog( int tab = OPEN_FILE_TAB );
......
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