mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-29 11:56:37 -05:00
create collection dialog filename as dir name
This commit is contained in:
parent
8368a764fc
commit
1f207ba05c
4 changed files with 14 additions and 6 deletions
|
|
@ -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 + ")"
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue