Commit 3754f8d4 authored by Martin Straka's avatar Martin Straka

Minor code refactoring again

parent 5bd05e6c
......@@ -35,3 +35,4 @@ QMAKE_BUNDLE_DATA += ios_icon
app_launch_images.files = $$files($${_PRO_FILE_PWD_}/ios/Images.xcassets/LaunchImage.launchimage/*.png)
QMAKE_BUNDLE_DATA += app_launch_images
LIBS += -framework UIKit -framework MessageUI -framework MobileCoreServices
......@@ -729,12 +729,9 @@ void Files::saveMsgFilesToDisk(const QString &userName,
QString targetPath;
#ifdef Q_OS_IOS
targetPath = appMsgAttachDirPathiOS(msgIdStr);
#else
targetPath = appMsgAttachDirPath(msgIdStr);
#endif
QString destFilePath;
......@@ -748,13 +745,9 @@ void Files::saveMsgFilesToDisk(const QString &userName,
}
#ifndef Q_OS_IOS
attachmentSavingNotification(destFilePath);
#else
exportFilesiOS(destFilePaths, joinDirs(userName, msgIdStr));
#endif
}
......@@ -774,12 +767,9 @@ void Files::saveAttachmentsToDiskZfo(const QVariant &attachModelVariant,
QString targetPath;
#ifdef Q_OS_IOS
targetPath = appMsgAttachDirPathiOS(msgIdStr);
#else
targetPath = appMsgAttachDirPath(msgIdStr);
#endif
QString destFilePath;
......@@ -796,13 +786,9 @@ void Files::saveAttachmentsToDiskZfo(const QVariant &attachModelVariant,
}
#ifndef Q_OS_IOS
attachmentSavingNotification(destFilePath);
#else
exportFilesiOS(destFilePaths, msgIdStr);
#endif
}
......
......@@ -50,7 +50,6 @@ QString appSendDirPath(void)
return existingAppPath(dfltAttachSavingLoc(), DATOVKA_SEND_DIR_NAME);
}
QString appCertDirPath(void)
{
return existingAppPath(dfltAttachSavingLoc(), DATOVKA_CERT_DIR_NAME);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment