Refactored as suggested by Floessie #5183
This commit is contained in:
@@ -1779,9 +1779,7 @@ void FileBrowser::openNextImage()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// open the selected image
|
// open the selected image
|
||||||
std::vector<Thumbnail*> entries;
|
tbl->openRequested({thumb});
|
||||||
entries.push_back(thumb);
|
|
||||||
tbl->openRequested(entries);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1844,9 +1842,7 @@ void FileBrowser::openPrevImage()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// open the selected image
|
// open the selected image
|
||||||
std::vector<Thumbnail*> entries;
|
tbl->openRequested({thumb});
|
||||||
entries.push_back(thumb);
|
|
||||||
tbl->openRequested(entries);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1857,7 +1853,7 @@ void FileBrowser::openPrevImage()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileBrowser::selectImage(Glib::ustring fname)
|
void FileBrowser::selectImage(const Glib::ustring& fname)
|
||||||
{
|
{
|
||||||
MYWRITERLOCK(l, entryRW);
|
MYWRITERLOCK(l, entryRW);
|
||||||
|
|
||||||
@@ -1903,7 +1899,7 @@ void FileBrowser::selectImage(Glib::ustring fname)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileBrowser::openNextPreviousEditorImage (Glib::ustring fname, eRTNav nextPrevious)
|
void FileBrowser::openNextPreviousEditorImage (const Glib::ustring& fname, eRTNav nextPrevious)
|
||||||
{
|
{
|
||||||
|
|
||||||
// let FileBrowser acquire Editor's perspective
|
// let FileBrowser acquire Editor's perspective
|
||||||
|
@@ -183,12 +183,12 @@ public:
|
|||||||
|
|
||||||
void openNextImage();
|
void openNextImage();
|
||||||
void openPrevImage();
|
void openPrevImage();
|
||||||
void selectImage(Glib::ustring fname);
|
void selectImage(const Glib::ustring& fname);
|
||||||
|
|
||||||
void copyProfile ();
|
void copyProfile ();
|
||||||
void pasteProfile ();
|
void pasteProfile ();
|
||||||
void partPasteProfile ();
|
void partPasteProfile ();
|
||||||
void openNextPreviousEditorImage (Glib::ustring fname, eRTNav eNextPrevious);
|
void openNextPreviousEditorImage(const Glib::ustring& fname, eRTNav eNextPrevious);
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
void openDefaultViewer (int destination);
|
void openDefaultViewer (int destination);
|
||||||
|
Reference in New Issue
Block a user