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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user