Don't leak the full file path when sending file

remotes/origin/0.7.0-dev
Nicolas Werner 5 years ago
parent 1b039d0b16
commit d113733ce0
  1. 2
      src/TextInputWidget.cpp

@ -639,7 +639,7 @@ TextInputWidget::openFileSelection()
QSharedPointer<QFile> file{new QFile{fileName, this}};
emit uploadMedia(file, format, fileName, input_->related);
emit uploadMedia(file, format, QFileInfo(fileName).fileName(), input_->related);
input_->related = {};
input_->closeReply();

Loading…
Cancel
Save