add icons for avaible IP account
[vlc-remote] / browsemainwindow.cpp
index f4bcef5..90f09a7 100644 (file)
@@ -58,6 +58,9 @@ BrowseMainWindow::BrowseMainWindow(QWidget *parent) :
 void BrowseMainWindow::init()  // THIS METHOD IS CALLED WHEN CONFIG CHANGED...
 {
     mIp = AccountDialog::currentIp();
+}
+void BrowseMainWindow::showCurrentDirectory()  // THIS METHOD IS CALLED WHEN WINDOW IS OPENED...
+{
     browseDirectory(mCurrentDir);
 }
 
@@ -138,7 +141,6 @@ void BrowseMainWindow::browseDirectory(QString dir) {
     ui->listWidget->clear();
     mResponse.clear();
     QNetworkReply * reply =  mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/browse.xml?dir=" + dir)));
-    //reply->setReadBufferSize(1024 * 500);
     connect(reply,SIGNAL(readyRead()),this,SLOT(readReady()));
     connect(mNetManager,SIGNAL(finished(QNetworkReply *)),this,SLOT(finished(QNetworkReply *)));
 }