create collection dialog filename as dir name

This commit is contained in:
RetroPooh 2017-11-14 19:52:48 +03:00
parent 8368a764fc
commit 1f207ba05c
4 changed files with 14 additions and 6 deletions

View file

@ -413,9 +413,8 @@ bool RsCollection::save(QWidget *parent) const
}
bool RsCollection::openNewColl(QWidget *parent)
bool RsCollection::openNewColl(QWidget *parent, QString fileName)
{
QString fileName;
if(!misc::getSaveFileName(parent, RshareSettings::LASTDIR_EXTRAFILE
, QApplication::translate("RsCollectionFile", "Create collection file")
, QApplication::translate("RsCollectionFile", "Collection files") + " (*." + RsCollection::ExtensionString + ")"

View file

@ -82,7 +82,7 @@ public:
bool save(const QString& fileName) const ;
// Open new collection
bool openNewColl(QWidget *parent);
bool openNewColl(QWidget *parent, QString fileName = "");
// Open existing collection
bool openColl(const QString& fileName, bool readOnly = false, bool showError = true);