Changeset 1ca13ef


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

Location:
src/gui
Files:
2 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
  • src/gui/mainwindow.ui

    rc81f30a r1ca13ef  
    259259   </hints>
    260260  </connection>
    261   <connection>
    262    <sender>reloadAction</sender>
    263    <signal>triggered()</signal>
    264    <receiver>MainWindow</receiver>
    265    <slot>close()</slot>
    266    <hints>
    267     <hint type="sourcelabel">
    268      <x>-1</x>
    269      <y>-1</y>
    270     </hint>
    271     <hint type="destinationlabel">
    272      <x>451</x>
    273      <y>248</y>
    274     </hint>
    275    </hints>
    276   </connection>
    277261 </connections>
    278262</ui>
Note: See TracChangeset for help on using the changeset viewer.