summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-10-12 20:05:01 +0200
committerArno <am@disconnect.de>2013-10-12 20:05:01 +0200
commitc67e0b300850cf8f01ab58a45071ae7f649aaad1 (patch)
tree505d76b892d4abfb20008b10b93318e53d6659f6
parentba7e76a2ee167aff632fdd8bd4d9b840b20bbd16 (diff)
downloadSheMov-c67e0b300850cf8f01ab58a45071ae7f649aaad1.tar.gz
SheMov-c67e0b300850cf8f01ab58a45071ae7f649aaad1.tar.bz2
SheMov-c67e0b300850cf8f01ab58a45071ae7f649aaad1.zip
Don't show PicGone when showing a Preview
-rw-r--r--pictureviewer2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/pictureviewer2.cpp b/pictureviewer2.cpp
index 2347267..b84d07d 100644
--- a/pictureviewer2.cpp
+++ b/pictureviewer2.cpp
@@ -170,7 +170,7 @@ QSize PictureViewer2::sizeHint() const{
}
void PictureViewer2::next(){
- if(!mFiles.size()){
+ if(mFiles.size() == 0 || mFiles.size() == 1){
return;
}
if(mCurPos + 1 >= mFiles.size()){
@@ -183,7 +183,7 @@ void PictureViewer2::next(){
}
void PictureViewer2::previous(){
- if(!mFiles.size()){
+ if(mFiles.size() == 0 || mFiles.size() == 1){
return;
}
if(mCurPos - 1 < 0){