mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-02 02:24:58 -05:00
this commit changed the QFileDialog::getOpenFileName to misc::getOpenFileName
This commit is contained in:
parent
df8e6b9f96
commit
b543281bb3
@ -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,7 +540,8 @@ void PulseAddDialog::toggle()
|
||||
// Function to get the file dialog for the browse button
|
||||
void PulseAddDialog::onBrowseButtonClicked()
|
||||
{
|
||||
QString filePath = QFileDialog::getOpenFileName(this, tr("Select image file"), QString(), tr("Image files (*.png *.jpg *.jpeg *.bmp *.gif)"));
|
||||
QString filePath;
|
||||
misc::getOpenFileName(this, RshareSettings::LASTDIR_IMAGES, tr("Load Picture File"), "Pictures (*.png *.xpm *.jpg *.jpeg *.gif *.webp )", filePath);
|
||||
if (!filePath.isEmpty()) {
|
||||
ui.lineEdit_FilePath->setText(filePath);
|
||||
addImage(filePath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user