* use dataDirectory for Organizer DirModel

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1016 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-02-06 18:43:23 +00:00
parent cb347ffd57
commit 99959b261f

View File

@ -67,8 +67,8 @@ QString fileToFind;
LibraryDialog::LibraryDialog(QWidget *parent) LibraryDialog::LibraryDialog(QWidget *parent)
: MainPage(parent) : MainPage(parent)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */
ui.setupUi(this); ui.setupUi(this);
PopulateList(); PopulateList();
@ -82,7 +82,10 @@ LibraryDialog::LibraryDialog(QWidget *parent)
connect(ui.deleteAlbum_btn_library,SIGNAL(clicked()),this, SLOT(CallDeleteAlbumBtn_library())); connect(ui.deleteAlbum_btn_library,SIGNAL(clicked()),this, SLOT(CallDeleteAlbumBtn_library()));
connect(ui.find_btn_library,SIGNAL(clicked()),this, SLOT(CallFindBtn_library())); connect(ui.find_btn_library,SIGNAL(clicked()),this, SLOT(CallFindBtn_library()));
/* Set header resize modes and initial section sizes */
QHeaderView * organizerheader = ui.organizertreeView->header();
organizerheader->resizeSection ( 0, 250 );
QTimer *timer = new QTimer(this); QTimer *timer = new QTimer(this);
@ -107,7 +110,7 @@ void LibraryDialog::PopulateList()
LibShared=treePath.currentPath(); LibShared=treePath.currentPath();
LibShared.append("/RetroShare Library"); LibShared.append("/RetroShare Library");
#else #else
LibShared=treePath.currentPath(); LibShared=Rshare::dataDirectory();
#endif #endif
QDirModel * dmodel=new QDirModel; QDirModel * dmodel=new QDirModel;