1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-18 20:40:43 +01:00

Make the album cover search dialog window modal so that it acts like a sheet on Mac.

This commit is contained in:
John Maguire 2011-08-27 14:50:11 +01:00
parent 263f57b47b
commit 72198db1ba

View File

@ -97,6 +97,7 @@ AlbumCoverSearcher::AlbumCoverSearcher(const QIcon& no_cover_icon, QWidget* pare
fetcher_(NULL),
id_(0)
{
setWindowModality(Qt::WindowModal);
ui_->setupUi(this);
ui_->busy->hide();
@ -115,6 +116,8 @@ AlbumCoverSearcher::AlbumCoverSearcher(const QIcon& no_cover_icon, QWidget* pare
connect(ui_->covers, SIGNAL(doubleClicked(QModelIndex)), SLOT(CoverDoubleClicked(QModelIndex)));
new ForceScrollPerPixel(ui_->covers, this);
ui_->buttonBox->button(QDialogButtonBox::Cancel)->setShortcut(QKeySequence::Close);
}
AlbumCoverSearcher::~AlbumCoverSearcher() {