Stop SendFile and Call buttons swapping places on file upload

This commit is contained in:
trilene 2020-08-17 17:42:06 -04:00
parent b6751ab01e
commit 1402732b5f

View file

@ -633,7 +633,7 @@ TextInputWidget::showUploadSpinner()
topLayout_->removeWidget(sendFileBtn_); topLayout_->removeWidget(sendFileBtn_);
sendFileBtn_->hide(); sendFileBtn_->hide();
topLayout_->insertWidget(0, spinner_); topLayout_->insertWidget(1, spinner_);
spinner_->start(); spinner_->start();
} }
@ -641,7 +641,7 @@ void
TextInputWidget::hideUploadSpinner() TextInputWidget::hideUploadSpinner()
{ {
topLayout_->removeWidget(spinner_); topLayout_->removeWidget(spinner_);
topLayout_->insertWidget(0, sendFileBtn_); topLayout_->insertWidget(1, sendFileBtn_);
sendFileBtn_->show(); sendFileBtn_->show();
spinner_->stop(); spinner_->stop();
} }