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 *********************************
|
// ************************* class DFManager *********************************
|
||||||
|
|
||||||
void DFManager::init( Glib::ustring pathname )
|
void DFManager::init(const Glib::ustring& pathname)
|
||||||
{
|
{
|
||||||
|
if (pathname.empty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
std::vector<Glib::ustring> names;
|
std::vector<Glib::ustring> names;
|
||||||
|
|
||||||
auto dir = Gio::File::create_for_path (pathname);
|
auto dir = Gio::File::create_for_path (pathname);
|
||||||
|
@@ -78,7 +78,7 @@ protected:
|
|||||||
class DFManager
|
class DFManager
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void init( Glib::ustring pathname );
|
void init(const Glib::ustring &pathname);
|
||||||
Glib::ustring getPathname()
|
Glib::ustring getPathname()
|
||||||
{
|
{
|
||||||
return currentPath;
|
return currentPath;
|
||||||
|
@@ -231,8 +231,11 @@ void ffInfo::updateRawImage()
|
|||||||
|
|
||||||
// ************************* class FFManager *********************************
|
// ************************* class FFManager *********************************
|
||||||
|
|
||||||
void FFManager::init( Glib::ustring pathname )
|
void FFManager::init(const Glib::ustring& pathname)
|
||||||
{
|
{
|
||||||
|
if (pathname.empty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
std::vector<Glib::ustring> names;
|
std::vector<Glib::ustring> names;
|
||||||
|
|
||||||
auto dir = Gio::File::create_for_path (pathname);
|
auto dir = Gio::File::create_for_path (pathname);
|
||||||
|
@@ -75,7 +75,7 @@ protected:
|
|||||||
class FFManager
|
class FFManager
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void init( Glib::ustring pathname );
|
void init(const Glib::ustring &pathname);
|
||||||
Glib::ustring getPathname()
|
Glib::ustring getPathname()
|
||||||
{
|
{
|
||||||
return currentPath;
|
return currentPath;
|
||||||
|
@@ -300,7 +300,7 @@ ClutComboBox::ClutModel::ClutModel(const Glib::ustring &path)
|
|||||||
{
|
{
|
||||||
m_model = Gtk::TreeStore::create (m_columns);
|
m_model = Gtk::TreeStore::create (m_columns);
|
||||||
//set_model (m_model);
|
//set_model (m_model);
|
||||||
count = parseDir(path);
|
count = path.empty() ? 0 : parseDir(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ClutComboBox::ClutModel::parseDir(const Glib::ustring& path)
|
int ClutComboBox::ClutModel::parseDir(const Glib::ustring& path)
|
||||||
|
Reference in New Issue
Block a user