Revert "this commit changed the QFileDialog::getOpenFileName to misc::getOpenFileName"

This reverts commit 5fae434f03.
This commit is contained in:
PYRET1C 2023-04-14 17:21:45 +05:30
parent 5fae434f03
commit df8e6b9f96
3 changed files with 5 additions and 6 deletions

View file

@ -20,11 +20,11 @@
#include <iostream>
#include <QtGui>
#include <QFileDialog>
#include "PulseReply.h"
#include "gui/gxs/GxsIdDetails.h"
#include "gui/common/FilesDefs.h"
#include "util/misc.h"
#include "PulseAddDialog.h"
@ -540,8 +540,7 @@ void PulseAddDialog::toggle()
// Function to get the file dialog for the browse button
void PulseAddDialog::onBrowseButtonClicked()
{
QString filePath;
misc::getOpenFileName(this, RshareSettings::LASTDIR_IMAGES, tr("Load Picture File"), "Pictures (*.png *.xpm *.jpg *.jpeg *.gif *.webp )", filePath);
QString filePath = QFileDialog::getOpenFileName(this, tr("Select image file"), QString(), tr("Image files (*.png *.jpg *.jpeg *.bmp *.gif)"));
if (!filePath.isEmpty()) {
ui.lineEdit_FilePath->setText(filePath);
addImage(filePath);