Open containing dir of downloading file
Makes more sense than trying to open an incomplete file
This commit is contained in:
parent
a0031d3806
commit
536f140fcb
|
@ -432,10 +432,11 @@ void TrayWidget::openDir(const SyncthingDir &dir)
|
|||
|
||||
void TrayWidget::openItemDir(const SyncthingItemDownloadProgress &item)
|
||||
{
|
||||
if(item.fileInfo.exists()) {
|
||||
DesktopUtils::openLocalFileOrDir(item.fileInfo.path());
|
||||
const QDir containingDir(item.fileInfo.absoluteDir());
|
||||
if(containingDir.exists()) {
|
||||
DesktopUtils::openLocalFileOrDir(containingDir.path());
|
||||
} else {
|
||||
QMessageBox::warning(this, QCoreApplication::applicationName(), tr("The file <i>%1</i> does not exist on the local machine.").arg(item.fileInfo.filePath()));
|
||||
QMessageBox::warning(this, QCoreApplication::applicationName(), tr("The containing directory <i>%1</i> does not exist on the local machine.").arg(item.fileInfo.filePath()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -741,7 +741,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../gui/traywidget.ui" line="113"/>
|
||||
<location filename="../gui/traywidget.cpp" line="533"/>
|
||||
<location filename="../gui/traywidget.cpp" line="534"/>
|
||||
<source>Start</source>
|
||||
<translation>Starten</translation>
|
||||
</message>
|
||||
|
@ -773,7 +773,7 @@
|
|||
<message>
|
||||
<location filename="../gui/traywidget.ui" line="250"/>
|
||||
<location filename="../gui/traywidget.ui" line="270"/>
|
||||
<location filename="../gui/traywidget.cpp" line="491"/>
|
||||
<location filename="../gui/traywidget.cpp" line="492"/>
|
||||
<source>unknown</source>
|
||||
<translation>unbekannt</translation>
|
||||
</message>
|
||||
|
@ -904,15 +904,19 @@ For <i>all</i> notifications, checkout the log</source>
|
|||
<message>
|
||||
<location filename="../gui/traywidget.cpp" line="429"/>
|
||||
<source>The directory <i>%1</i> does not exist on the local machine.</source>
|
||||
<translation>Das Verzeichnis <i>%i</i> existiert nicht (lokal).</translation>
|
||||
<translation>Das Verzeichnis <i>%1</i> existiert nicht lokal.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../gui/traywidget.cpp" line="439"/>
|
||||
<source>The containing directory <i>%1</i> does not exist on the local machine.</source>
|
||||
<translation>Das beinhaltende Verzeichnis <i>%1</i> existiert nicht lokal.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../gui/traywidget.cpp" line="438"/>
|
||||
<source>The file <i>%1</i> does not exist on the local machine.</source>
|
||||
<translation>Die Datei <i>%1</i> existiert nicht (lokal).</translation>
|
||||
<translation type="vanished">Die Datei <i>%1</i> existiert nicht (lokal).</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../gui/traywidget.cpp" line="529"/>
|
||||
<location filename="../gui/traywidget.cpp" line="530"/>
|
||||
<source>Stop</source>
|
||||
<translation>Stoppen</translation>
|
||||
</message>
|
||||
|
|
|
@ -738,7 +738,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../gui/traywidget.ui" line="113"/>
|
||||
<location filename="../gui/traywidget.cpp" line="533"/>
|
||||
<location filename="../gui/traywidget.cpp" line="534"/>
|
||||
<source>Start</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -770,7 +770,7 @@
|
|||
<message>
|
||||
<location filename="../gui/traywidget.ui" line="250"/>
|
||||
<location filename="../gui/traywidget.ui" line="270"/>
|
||||
<location filename="../gui/traywidget.cpp" line="491"/>
|
||||
<location filename="../gui/traywidget.cpp" line="492"/>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -903,12 +903,12 @@ For <i>all</i> notifications, checkout the log</source>
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../gui/traywidget.cpp" line="438"/>
|
||||
<source>The file <i>%1</i> does not exist on the local machine.</source>
|
||||
<location filename="../gui/traywidget.cpp" line="439"/>
|
||||
<source>The containing directory <i>%1</i> does not exist on the local machine.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../gui/traywidget.cpp" line="529"/>
|
||||
<location filename="../gui/traywidget.cpp" line="530"/>
|
||||
<source>Stop</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
|
Loading…
Reference in New Issue