Commit 9ec8ab02 authored by Marco Martin's avatar Marco Martin

update selected wallpaper when adding from file browser

when the user opens a custom wallpaper, select it,
so when ok is pressed the wallpaper will be applied
parent 92cd9cb0
......@@ -674,7 +674,7 @@ void Image::wallpaperBrowseCompleted()
Q_ASSERT(m_model);
if (m_dialog && m_dialog->selectedFiles().count() > 0) {
addUsersWallpaper(m_dialog->selectedFiles().first());
emit customWallpaperPicked();
emit customWallpaperPicked(m_dialog->selectedFiles().first());
}
}
......
......@@ -129,7 +129,7 @@ class Image : public QObject, public QQmlParserStatus
void usersWallpapersChanged();
void slidePathsChanged();
void resizeMethodChanged();
void customWallpaperPicked();
void customWallpaperPicked(const QString &path);
protected Q_SLOTS:
void showAddSlidePathsDialog();
......
......@@ -319,7 +319,8 @@ ColumnLayout {
Connections {
target: imageWallpaper
onCustomWallpaperPicked: {
wallpapersGrid.currentIndex = 0
wallpapersGrid.currentIndex = 0;
cfg_Image = path;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment