[digikam] [Bug 218297] SETUP : Database location under control panel doesn't match when using database-directory command line option

Glenn Washburn bugzilla_noreply at kde.org
Mon Mar 13 23:14:42 GMT 2017


https://bugs.kde.org/show_bug.cgi?id=218297

--- Comment #7 from Glenn Washburn <development at efficientek.com> ---
If the --data-directory argument is specified, then its value needs to be used
as the argument to d->dbPathEdit->setFileDlgPath instead of
"d->orgPrms.getCoreDatabaseNameOrDir()" in the function
DatabaseSettingsWidget::setParametersFromSettings in file
libs/database/utils/dbsettingswidget.cpp.  See:
https://cgit.kde.org/digikam.git/tree/libs/database/utils/dbsettingswidget.cpp#n763

The value of the --data-directory argument is set to commandLineDBPath here:
https://cgit.kde.org/digikam.git/tree/app/main/main.cpp#n146.  But it is only
used to get the database paths initially and not saved.

I can think of several ways to get the command line argument value to where its
needed, but I don't know the project well enough to feel comfortable making
that choice.  For a dev on this project, this fix should be very easy and take
minimal effort.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Digikam-devel mailing list