diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-01-11 10:52:54 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-01-11 10:52:54 +0000 |
| commit | fc75b7cd788d5afd973bf2cc6e7af15050c5de00 (patch) | |
| tree | 78b32d2a22b3a3d375a71d9d89f6ea72e18fcc6f /src/plugins/General/covermanager/covermanager.cpp | |
| parent | be65205e6187b5f4572b7531e2128f75c18ff353 (diff) | |
| download | qmmp-fc75b7cd788d5afd973bf2cc6e7af15050c5de00.tar.gz qmmp-fc75b7cd788d5afd973bf2cc6e7af15050c5de00.tar.bz2 qmmp-fc75b7cd788d5afd973bf2cc6e7af15050c5de00.zip | |
improved cover manager
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1497 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/covermanager/covermanager.cpp')
| -rw-r--r-- | src/plugins/General/covermanager/covermanager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/General/covermanager/covermanager.cpp b/src/plugins/General/covermanager/covermanager.cpp index be79ef386..557a4b5af 100644 --- a/src/plugins/General/covermanager/covermanager.cpp +++ b/src/plugins/General/covermanager/covermanager.cpp @@ -20,6 +20,7 @@ #include <QAction> #include <QApplication> +#include <QMessageBox> #include <qmmpui/generalhandler.h> #include <qmmpui/playlistmodel.h> #include <qmmpui/playlistitem.h> @@ -44,8 +45,11 @@ void CoverManager::showWindow() if (!items.isEmpty()) { CoverWidget *w = new CoverWidget(qApp->activeWindow ()); - w->setFixedSize(400,400); QPixmap pix = MetaDataManager::instance()->getCover(items.at(0)->url()); + if(pix.isNull()) + { + return; + } w->setPixmap(pix); MetaDataFormatter formatter("%p%if(%p&%t, - ,)%if(%t,%t,%f)"); w->setWindowTitle(formatter.parse(items.at(0)->metaData())); |
