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:
drbob 2008-11-27 21:26:52 +00:00
parent f5fa2f9a68
commit 99c038a4db
6 changed files with 287 additions and 126 deletions

View file

@ -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
{
}
}