Ignore:
Timestamp:
10/17/11 22:26:47 (11 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
066b41f
Parents:
c81f30a
Message:

Implemented the reload button functionality. Closes: #34

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    rc81f30a r1ca13ef  
    140140
    141141void MainWindow::on_reloadAction_triggered() {
    142 
     142    int confId = Conference::activeConference();
     143    if (confId== -1) return;
     144    Conference active = Conference::getById(confId);
     145    if (active.url().isEmpty()) return;
     146    importFromNetwork(active.url());
     147    setEnabled(false);
    143148}
    144149
     
    297302        importData(aReply->readAll(), aReply->url().toEncoded());
    298303    }
     304    setEnabled(true);
    299305}
    300306
Note: See TracChangeset for help on using the changeset viewer.