aboutsummaryrefslogtreecommitdiff
path: root/lumina-config/mainUI.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-10-23 07:01:54 -0400
committerKen Moore <ken@pcbsd.org>2014-10-23 07:01:54 -0400
commit6a78840d4cbef1d9bc5be1a569980180d7bae86f (patch)
tree42f76db75c0ecbd745cf1d6cb1987daa16946649 /lumina-config/mainUI.cpp
parentRemove the requirement for the "native" graphics engine in Qt for the desktop... (diff)
downloadlumina-6a78840d4cbef1d9bc5be1a569980180d7bae86f.tar.gz
lumina-6a78840d4cbef1d9bc5be1a569980180d7bae86f.tar.bz2
lumina-6a78840d4cbef1d9bc5be1a569980180d7bae86f.zip
Fix the auto-loading of the Lumina wallpapers directory in lumina-config.
Diffstat (limited to 'lumina-config/mainUI.cpp')
-rw-r--r--lumina-config/mainUI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lumina-config/mainUI.cpp b/lumina-config/mainUI.cpp
index e4490659..937cfcb5 100644
--- a/lumina-config/mainUI.cpp
+++ b/lumina-config/mainUI.cpp
@@ -726,7 +726,8 @@ void MainUI::deskbgremoved(){
void MainUI::deskbgadded(){
//Prompt the user to find an image file to use for a background
- QString dir = LOS::LuminaShare()+"wallpapers/Lumina-DE";
+ QString dir = LOS::LuminaShare().section("/Lumina-DE",0,0)+"/wallpapers/Lumina-DE";
+ qDebug() << "Looking for wallpaper dir:" << dir;
if( !QFile::exists(dir) ){ dir = QDir::homePath(); }
QStringList bgs = QFileDialog::getOpenFileNames(this, tr("Find Background Image(s)"), dir, "Images (*.png *.xpm *.jpg)");
if(bgs.isEmpty()){ return; }
bgstack15