mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-21 02:01:03 +07:00
reworking of getting the path to the file when saving/opening files
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
#ifdef Q_OS_IOS
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#endif
|
||||
#include "fileUtilites.h"
|
||||
|
||||
namespace
|
||||
{
|
||||
@@ -88,11 +87,7 @@ ImportController::ImportController(const QSharedPointer<ServersModel> &serversMo
|
||||
|
||||
void ImportController::extractConfigFromFile(const QString &fileName)
|
||||
{
|
||||
QQuickItem *obj = findChild<QQuickItem *>("saveFileDialog");
|
||||
|
||||
QUrl url(fileName);
|
||||
QString path = url.toLocalFile();
|
||||
QFile file(path);
|
||||
QFile file(fileName);
|
||||
|
||||
if (file.open(QIODevice::ReadOnly)) {
|
||||
QString data = file.readAll();
|
||||
|
||||
Reference in New Issue
Block a user