mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 16:39:29 -05:00
- Fixed HeaderFrame icon to use correct one (Share Dialog)
- Change Header Text/ Window Title when Share Dialog is in Edit mode. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5943 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d01745e54f
commit
bf70038ad2
@ -42,7 +42,7 @@ ShareDialog::ShareDialog(std::string filename, QWidget *parent)
|
||||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
ui.headerFrame->setHeaderImage(QPixmap(":/images/fileshare48.png"));
|
||||
ui.headerFrame->setHeaderImage(QPixmap(":/images/fileshare64.png"));
|
||||
ui.headerFrame->setHeaderText(tr("Share Folder"));
|
||||
|
||||
connect(ui.browseButton, SIGNAL(clicked( bool ) ), this , SLOT( browseDirectory() ) );
|
||||
@ -97,8 +97,10 @@ ShareDialog::ShareDialog(std::string filename, QWidget *parent)
|
||||
ui.browseButton->setDisabled(true);
|
||||
ui.virtualpath_lineEdit->setText(QString::fromUtf8(it->virtualname.c_str()));
|
||||
|
||||
groupflagsbox->setFlags(it->shareflags) ;
|
||||
groupflagsbox->setFlags(it->shareflags) ;
|
||||
groupselectionbox->setSelectedGroupIds(it->parent_groups) ;
|
||||
|
||||
ui.headerFrame->setHeaderText(tr("Edit Shared Folder"));
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ void ShareManager::updateFlags()
|
||||
if(isLoading)
|
||||
return ;
|
||||
|
||||
isLoading = true ; // stops GUI update. Otherwise each call to rsFiles->updateShareFlags() modifies the GUI that we count on to check
|
||||
isLoading = true ; // stops GUI update. Otherwise each call to rsFiles->updateShareFlags() modifies the GUI that we count on to check
|
||||
// what has changed => fail!
|
||||
|
||||
// std::cerr << "Updating flags" << std::endl;
|
||||
@ -268,6 +268,7 @@ void ShareManager::editShareDirectory()
|
||||
if (it->filename == filename) {
|
||||
/* file name found, show dialog */
|
||||
ShareDialog sharedlg (it->filename, this);
|
||||
sharedlg.setWindowTitle(tr("Edit Shared Folder"));
|
||||
sharedlg.exec();
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user