2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

made custom open with dialog for os x almost like in finder, with langs support

This commit is contained in:
John Preston
2014-06-18 22:37:44 +04:00
parent 37f7698371
commit d68aeb1b49
12 changed files with 298 additions and 88 deletions

View File

@@ -271,7 +271,7 @@ void VideoOpenLink::onClick(Qt::MouseButton button) const {
QString already = data->already(true);
if (!already.isEmpty()) {
QDesktopServices::openUrl(QUrl::fromLocalFile(already));
psOpenFile(already);
return;
}
@@ -331,7 +331,7 @@ void AudioOpenLink::onClick(Qt::MouseButton button) const {
QString already = data->already(true);
if (!already.isEmpty()) {
QDesktopServices::openUrl(QUrl::fromLocalFile(already));
psOpenFile(already);
return;
}
@@ -391,7 +391,7 @@ void DocumentOpenLink::onClick(Qt::MouseButton button) const {
QString already = data->already(true);
if (!already.isEmpty()) {
QDesktopServices::openUrl(QUrl::fromLocalFile(already));
psOpenFile(already);
return;
}