Dave Druelinger avatar Dave Druelinger committed 06d0962

a few quick fixes

Comments (0)

Files changed (2)

 {
 	if (imageLoaded)
 	{
-		currentFileIndex -= 1;
+		currentFileIndex--;
 		openByNavigation();
 		scrollArea->horizontalScrollBar()->setValue(scrollArea->horizontalScrollBar()->maximum());
 		scrollArea->verticalScrollBar()->setValue(scrollArea->verticalScrollBar()->maximum());
 {
 	if (imageLoaded)
 	{
-		currentFileIndex += 1;
+		currentFileIndex++;
 		openByNavigation();
 		scrollArea->horizontalScrollBar()->setValue(0);
 		scrollArea->verticalScrollBar()->setValue(0);
 {
 	if (currentFileIndex > currentDirFiles.count() - 1)
 		currentFileIndex = 0;
-	if (currentFileIndex < 0)
+	else if (currentFileIndex < 0)
 		currentFileIndex = currentDirFiles.count() - 1;
 
 	currentFilePath = currentDir.absolutePath() + QDir::separator() + currentDirFiles[currentFileIndex];
 //load and resize images in separate thread so it doesn't lock up and you can show a loading animation and allow cancelling
 //ask for localization help in readme (if you can figure it out)
 //right to left reading?
-//when going to previous image, start on the right side?
 //command-del sends image to trash?
 //keyboard command to reveal the item in finder
 //could just use a timer instead of animations for arrow (leave for spacebar)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.