author | llornkcor <llornkcor> | 2005-01-08 19:56:24 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2005-01-08 19:56:24 (UTC) |
commit | 60a617583d0ccc793d9ea4465998d90ec208db58 (patch) (unidiff) | |
tree | 58b125c9526c9dff30efbfa427c92c49f2995aee /noncore/multimedia | |
parent | 955213d274c2f0c11d0f153e2fed5df5170e50f6 (diff) | |
download | opie-60a617583d0ccc793d9ea4465998d90ec208db58.zip opie-60a617583d0ccc793d9ea4465998d90ec208db58.tar.gz opie-60a617583d0ccc793d9ea4465998d90ec208db58.tar.bz2 |
check for skins directory and fail nicely if not found
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index 2e9553f..5f4159c 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp | |||
@@ -951,4 +951,9 @@ void PlayListWidget::populateSkinsMenu() { | |||
951 | 951 | ||
952 | QDir skinsDir( QPEApplication::qpeDir() + "pics/opieplayer2/skins" ); | 952 | QDir skinsDir( QPEApplication::qpeDir() + "pics/opieplayer2/skins" ); |
953 | if(!skinsDir.exists()) { | ||
954 | QMessageBox::critical( 0, tr("Opieplayer Error"), | ||
955 | tr("<p><b>Opieplayer2 skin not found!</b></p><p>Please install an opieplayer2 skin package.</p>") ); | ||
956 | exit(1) ; | ||
957 | } | ||
953 | skinsDir.setFilter( QDir::Dirs ); | 958 | skinsDir.setFilter( QDir::Dirs ); |
954 | skinsDir.setSorting(QDir::Name ); | 959 | skinsDir.setSorting(QDir::Name ); |