diff options
author | Marcos CARDINOT <mcardinot@gmail.com> | 2014-08-14 13:59:15 +0100 |
---|---|---|
committer | Marcos CARDINOT <mcardinot@gmail.com> | 2014-08-14 13:59:15 +0100 |
commit | 9e096526b1054d8981fb9481f8070a4f0716de48 (patch) | |
tree | da5f40d080648dc2320c4bcfcd39a7f4e6749cb8 /src/dlgcoverartfullsize.cpp | |
parent | fdea923e2754fd13312d65af2480af1ceddb00c9 (diff) |
DlgCoverArtFullSize - checking if the activeWindow is valid before handle cover size
Diffstat (limited to 'src/dlgcoverartfullsize.cpp')
-rw-r--r-- | src/dlgcoverartfullsize.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dlgcoverartfullsize.cpp b/src/dlgcoverartfullsize.cpp index ce473c9ecb..2d6f20e740 100644 --- a/src/dlgcoverartfullsize.cpp +++ b/src/dlgcoverartfullsize.cpp @@ -16,6 +16,10 @@ void DlgCoverArtFullSize::slotPixmapFound(int trackId, QPixmap pixmap) { Q_UNUSED(trackId); m_cover = pixmap; + if (!QApplication::activeWindow()) { + return; + } + // If cover is bigger than Mixxx, it must be resized! // In this case, it need to do a small adjust to make // this dlg a bit smaller than the Mixxx window. |