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:
parent
df5ab85e30
commit
4b3fad71f7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user