Browse Source

Fix crash after second push of List Files

QGC4.4
Don Gagne 11 years ago
parent
commit
7843cab121
  1. 2
      src/ui/QGCUASFileView.cc

2
src/ui/QGCUASFileView.cc

@ -196,5 +196,5 @@ void QGCUASFileView::_downloadStatusMessage(const QString& msg) @@ -196,5 +196,5 @@ void QGCUASFileView::_downloadStatusMessage(const QString& msg)
void QGCUASFileView::_currentItemChanged(QTreeWidgetItem* current, QTreeWidgetItem* previous)
{
Q_UNUSED(previous);
_ui.downloadButton->setEnabled(current->type() == _typeFile);
_ui.downloadButton->setEnabled(current ? (current->type() == _typeFile) : false);
}

Loading…
Cancel
Save