diff options
| author | Tobias Markmann <tm@ayena.de> | 2015-06-17 20:40:41 (GMT) |
|---|---|---|
| committer | Tobias Markmann <tm@ayena.de> | 2015-07-10 14:56:43 (GMT) |
| commit | b54aa689ffc6bec7987c193e28c641d2f0f73236 (patch) | |
| tree | ad9984fc3f9633e21fe0ff5ef8728f6d420ca07f /Swift/Controllers/FileTransfer/FileTransferController.cpp | |
| parent | 7af21fdd59af3b3112cff69996301605859af84c (diff) | |
| download | swift-b54aa689ffc6bec7987c193e28c641d2f0f73236.zip swift-b54aa689ffc6bec7987c193e28c641d2f0f73236.tar.bz2 | |
Implement logic behind 'Clear all' button
The 'Clear all' button in the file transfer overview window
was only present in the UI, without any logic behind. That's fixed now.
Test-Information:
Send a file in between two Swift instances. Verified that the button is
enabled/disabled at appropriate times and works as expected if pressed.
Change-Id: Ib92621cba479683ade8d815ce5ace9768449a499
Diffstat (limited to 'Swift/Controllers/FileTransfer/FileTransferController.cpp')
| -rw-r--r-- | Swift/Controllers/FileTransfer/FileTransferController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/FileTransfer/FileTransferController.cpp b/Swift/Controllers/FileTransfer/FileTransferController.cpp index f7ce8e6..c21c364 100644 --- a/Swift/Controllers/FileTransfer/FileTransferController.cpp +++ b/Swift/Controllers/FileTransfer/FileTransferController.cpp | |||
| @@ -119,11 +119,11 @@ void FileTransferController::cancel() { | |||
| 119 | } | 119 | } |
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | void FileTransferController::handleFileTransferStateChange(FileTransfer::State state) { | 122 | void FileTransferController::handleFileTransferStateChange(FileTransfer::State state) { |
| 123 | currentState = state; | 123 | currentState = state; |
| 124 | onStateChage(); | 124 | onStateChanged(); |
| 125 | switch(state.type) { | 125 | switch(state.type) { |
| 126 | case FileTransfer::State::Initial: | 126 | case FileTransfer::State::Initial: |
| 127 | assert(false); | 127 | assert(false); |
| 128 | return; | 128 | return; |
| 129 | case FileTransfer::State::Negotiating: | 129 | case FileTransfer::State::Negotiating: |
Swift