mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Show delete playlist dialog as a sheet on OS X
This commit is contained in:
@@ -367,6 +367,10 @@ SourceTreeView::deletePlaylist( const QModelIndex& idxIn )
|
|||||||
.arg( typeDesc ).arg( idx.data().toString() ),
|
.arg( typeDesc ).arg( idx.data().toString() ),
|
||||||
QMessageBox::Yes | QMessageBox::No, this );
|
QMessageBox::Yes | QMessageBox::No, this );
|
||||||
|
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
askDelete.setWindowModality( Qt::WindowModal );
|
||||||
|
#endif
|
||||||
|
|
||||||
int r = askDelete.exec();
|
int r = askDelete.exec();
|
||||||
if ( r != QMessageBox::Yes )
|
if ( r != QMessageBox::Yes )
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user