Don't scan for darframes/flatfields/cluts if folder is not set, #2238
This commit is contained in:
@@ -270,8 +270,11 @@ void dfInfo::updateBadPixelList( RawImage *df )
|
||||
|
||||
// ************************* class DFManager *********************************
|
||||
|
||||
void DFManager::init( Glib::ustring pathname )
|
||||
void DFManager::init(const Glib::ustring& pathname)
|
||||
{
|
||||
if (pathname.empty()) {
|
||||
return;
|
||||
}
|
||||
std::vector<Glib::ustring> names;
|
||||
|
||||
auto dir = Gio::File::create_for_path (pathname);
|
||||
|
||||
@@ -78,7 +78,7 @@ protected:
|
||||
class DFManager
|
||||
{
|
||||
public:
|
||||
void init( Glib::ustring pathname );
|
||||
void init(const Glib::ustring &pathname);
|
||||
Glib::ustring getPathname()
|
||||
{
|
||||
return currentPath;
|
||||
|
||||
@@ -231,8 +231,11 @@ void ffInfo::updateRawImage()
|
||||
|
||||
// ************************* class FFManager *********************************
|
||||
|
||||
void FFManager::init( Glib::ustring pathname )
|
||||
void FFManager::init(const Glib::ustring& pathname)
|
||||
{
|
||||
if (pathname.empty()) {
|
||||
return;
|
||||
}
|
||||
std::vector<Glib::ustring> names;
|
||||
|
||||
auto dir = Gio::File::create_for_path (pathname);
|
||||
|
||||
@@ -75,7 +75,7 @@ protected:
|
||||
class FFManager
|
||||
{
|
||||
public:
|
||||
void init( Glib::ustring pathname );
|
||||
void init(const Glib::ustring &pathname);
|
||||
Glib::ustring getPathname()
|
||||
{
|
||||
return currentPath;
|
||||
|
||||
Reference in New Issue
Block a user