mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 08:29:32 -05:00
Merge pull request #1188 from PhenomRetroShare/Fix_SharedFileDialogShowColumn
Fix SharedFilesDialog show old hidden column.
This commit is contained in:
commit
385f44bf61
@ -229,6 +229,12 @@ LocalSharedFilesDialog::LocalSharedFilesDialog(QWidget *parent)
|
|||||||
|
|
||||||
// load settings
|
// load settings
|
||||||
processSettings(true);
|
processSettings(true);
|
||||||
|
// Force to show columns even if hidden in setting
|
||||||
|
ui.dirTreeView->setColumnHidden(COLUMN_NAME, false) ;
|
||||||
|
ui.dirTreeView->setColumnHidden(COLUMN_FILENB, false) ;
|
||||||
|
ui.dirTreeView->setColumnHidden(COLUMN_SIZE, false) ;
|
||||||
|
ui.dirTreeView->setColumnHidden(COLUMN_AGE, false) ;
|
||||||
|
ui.dirTreeView->setColumnHidden(COLUMN_FRIEND_ACCESS, false) ;
|
||||||
// Setup the current view model.
|
// Setup the current view model.
|
||||||
//
|
//
|
||||||
changeCurrentViewModel(ui.viewType_CB->currentIndex()) ;
|
changeCurrentViewModel(ui.viewType_CB->currentIndex()) ;
|
||||||
@ -259,6 +265,11 @@ RemoteSharedFilesDialog::RemoteSharedFilesDialog(QWidget *parent)
|
|||||||
|
|
||||||
// load settings
|
// load settings
|
||||||
processSettings(true);
|
processSettings(true);
|
||||||
|
// Force to show columns even if hidden in setting
|
||||||
|
ui.dirTreeView->setColumnHidden(COLUMN_NAME, false) ;
|
||||||
|
ui.dirTreeView->setColumnHidden(COLUMN_FILENB, false) ;
|
||||||
|
ui.dirTreeView->setColumnHidden(COLUMN_SIZE, false) ;
|
||||||
|
ui.dirTreeView->setColumnHidden(COLUMN_AGE, false) ;
|
||||||
// Setup the current view model.
|
// Setup the current view model.
|
||||||
//
|
//
|
||||||
changeCurrentViewModel(ui.viewType_CB->currentIndex()) ;
|
changeCurrentViewModel(ui.viewType_CB->currentIndex()) ;
|
||||||
@ -414,6 +425,10 @@ void SharedFilesDialog::changeCurrentViewModel(int viewTypeIndex)
|
|||||||
|
|
||||||
void LocalSharedFilesDialog::showProperColumns()
|
void LocalSharedFilesDialog::showProperColumns()
|
||||||
{
|
{
|
||||||
|
ui.dirTreeView->setColumnHidden(COLUMN_NAME, false) ;
|
||||||
|
ui.dirTreeView->setColumnHidden(COLUMN_SIZE, false) ;
|
||||||
|
ui.dirTreeView->setColumnHidden(COLUMN_AGE, false) ;
|
||||||
|
|
||||||
if(model == tree_model)
|
if(model == tree_model)
|
||||||
{
|
{
|
||||||
ui.dirTreeView->setColumnHidden(COLUMN_FILENB, false) ;
|
ui.dirTreeView->setColumnHidden(COLUMN_FILENB, false) ;
|
||||||
@ -439,6 +454,10 @@ void LocalSharedFilesDialog::showProperColumns()
|
|||||||
}
|
}
|
||||||
void RemoteSharedFilesDialog::showProperColumns()
|
void RemoteSharedFilesDialog::showProperColumns()
|
||||||
{
|
{
|
||||||
|
ui.dirTreeView->setColumnHidden(COLUMN_NAME, false) ;
|
||||||
|
ui.dirTreeView->setColumnHidden(COLUMN_SIZE, false) ;
|
||||||
|
ui.dirTreeView->setColumnHidden(COLUMN_AGE, false) ;
|
||||||
|
|
||||||
if(model == tree_model)
|
if(model == tree_model)
|
||||||
{
|
{
|
||||||
ui.dirTreeView->setColumnHidden(COLUMN_FILENB, false) ;
|
ui.dirTreeView->setColumnHidden(COLUMN_FILENB, false) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user