aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LDesktop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/LDesktop.cpp')
-rw-r--r--lumina-desktop/LDesktop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lumina-desktop/LDesktop.cpp b/lumina-desktop/LDesktop.cpp
index 81d57cb8..c64f327f 100644
--- a/lumina-desktop/LDesktop.cpp
+++ b/lumina-desktop/LDesktop.cpp
@@ -395,7 +395,7 @@ void LDesktop::UpdateBackground(){
}
//Determine which background to use next
int index = bgL.indexOf(CBG);
- if( (index < 0) || (index >= bgL.length()-1) ){ index = 0; } //use the first file
+ if( (index < 0) || (index >= bgL.length()-1) ){ index = ( qrand() % bgL.length() ); } //pick a random file
else{ index++; } //use the next file in the list
QString bgFile;
if( bgL.isEmpty() && CBG.isEmpty()){ bgFile = "default"; }
bgstack15