1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-27 14:50:21 +03:00

open background dialog at better path

--use the background image path in order to open
the Background dialog at that path
This commit is contained in:
Michail Vourlakos 2018-07-11 20:29:58 +03:00
parent df5ab85e30
commit 4b3fad71f7

View File

@ -664,7 +664,8 @@ void SettingsDialog::requestImagesDialog(int row)
QString background = m_model->data(m_model->index(row, COLORCOLUMN), Qt::BackgroundRole).toString();
if (background.startsWith("/")) {
if (background.startsWith("/") && QFileInfo(background).exists()) {
dialog.setDirectory(QFileInfo(background).absolutePath());
dialog.selectFile(background);
}