From ff798cdf240ffb48ee3f88e63682559de73841fa Mon Sep 17 00:00:00 2001 From: Alberto Griggio Date: Sun, 10 Sep 2017 00:54:07 +0200 Subject: [PATCH] print the list of found lensfun cameras and lenses when in verbose mode --- rtgui/lensprofile.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rtgui/lensprofile.cc b/rtgui/lensprofile.cc index 28fef16cf..31f021819 100644 --- a/rtgui/lensprofile.cc +++ b/rtgui/lensprofile.cc @@ -526,10 +526,17 @@ LensProfilePanel::LFDbHelper::LFDbHelper() void LensProfilePanel::LFDbHelper::fillLensfunCameras() { + if (options.rtSettings.verbose) { + std::cout << "LENSFUN, scanning cameras:" << std::endl; + } std::map> camnames; auto camlist = LFDatabase::getInstance()->getCameras(); for (auto &c : camlist) { camnames[c.getMake()].insert(c.getModel()); + + if (options.rtSettings.verbose) { + std::cout << " found: " << c.getDisplayString() << std::endl; + } } for (auto &p : camnames) { Gtk::TreeModel::Row row = *(lensfunCameraModel->append()); @@ -546,12 +553,19 @@ void LensProfilePanel::LFDbHelper::fillLensfunCameras() void LensProfilePanel::LFDbHelper::fillLensfunLenses() { + if (options.rtSettings.verbose) { + std::cout << "LENSFUN, scanning lenses:" << std::endl; + } std::map> lenses; auto lenslist = LFDatabase::getInstance()->getLenses(); for (auto &l : lenslist) { auto name = l.getLens(); auto make = l.getMake(); lenses[make].insert(name); + + if (options.rtSettings.verbose) { + std::cout << " found: " << l.getDisplayString() << std::endl; + } } for (auto &p : lenses) { Gtk::TreeModel::Row row = *(lensfunLensModel->append());