mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-12 08:33:05 -04:00
Enabled save() function in SubFileItems.
Improved Channel Menu Item: added Icon and popularity. Reduced most of the margins in Channel Feed. updated libretroshare interface files. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@845 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f5fa2f9a68
commit
99c038a4db
6 changed files with 287 additions and 126 deletions
|
@ -558,6 +558,28 @@ void SubFileItem::save()
|
|||
std::cerr << "SubFileItem::save()";
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
|
||||
if (mType == SFI_TYPE_CHANNEL)
|
||||
{
|
||||
/* only enable these function for Channels. */
|
||||
|
||||
/* find out where they want to save it */
|
||||
QString startpath = "";
|
||||
QString dir = QFileDialog::getExistingDirectory(this, tr("Save Channel File"),
|
||||
startpath,
|
||||
QFileDialog::ShowDirsOnly
|
||||
| QFileDialog::DontResolveSymlinks);
|
||||
|
||||
std::string destpath = dir.toStdString();
|
||||
|
||||
if (destpath != "")
|
||||
{
|
||||
rsFiles->ExtraFileMove(mFileName, mFileHash, mFileSize, destpath);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue