diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-12-14 13:52:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-14 13:52:08 -0500 |
| commit | a912be4c6b7200a76aa16f7fedd50271e5684320 (patch) | |
| tree | cd507d7d2abd67f775fefa33394fdd14a8eac52e | |
| parent | 4c7b626e7748cae0f7c1933989bc1bcb755664f7 (diff) | |
| parent | 7af0e164f778ee8b2135e097856a597f5d68b873 (diff) | |
Merge pull request #939 from isanae/data-root-activate
Double-click on root item in the Data tab
| -rw-r--r-- | src/mainwindow.cpp | 4 | ||||
| -rw-r--r-- | src/organizer_en.ts | 134 |
2 files changed, 71 insertions, 67 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ea202064..a29ea8ab 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -5305,6 +5305,10 @@ void MainWindow::activateDataTreeItem(QTreeWidgetItem *item, int column) } const QString path = item->data(0, Qt::UserRole).toString(); + if (path.isEmpty()) { + return; + } + const QFileInfo targetInfo(path); const auto tryPreview = m_OrganizerCore.settings().interface().doubleClicksOpenPreviews(); diff --git a/src/organizer_en.ts b/src/organizer_en.ts index 633073a0..00bb771c 100644 --- a/src/organizer_en.ts +++ b/src/organizer_en.ts @@ -1576,53 +1576,53 @@ Right now the only case I know of where this needs to be overwritten is for the <translation type="unfinished"></translation> </message> <message> - <location filename="installationmanager.cpp" line="894"/> + <location filename="installationmanager.cpp" line="897"/> <source>None of the available installer plugins were able to handle that archive. This is likely due to a corrupted or incompatible download or unrecognized archive format.</source> <translation type="unfinished"></translation> </message> <message> - <location filename="installationmanager.cpp" line="907"/> + <location filename="installationmanager.cpp" line="910"/> <source>no error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="installationmanager.cpp" line="910"/> + <location filename="installationmanager.cpp" line="913"/> <source>7z.dll not found</source> <translation type="unfinished"></translation> </message> <message> - <location filename="installationmanager.cpp" line="913"/> + <location filename="installationmanager.cpp" line="916"/> <source>7z.dll isn't valid</source> <translation type="unfinished"></translation> </message> <message> - <location filename="installationmanager.cpp" line="916"/> + <location filename="installationmanager.cpp" line="919"/> <source>archive not found</source> <translation type="unfinished"></translation> </message> <message> - <location filename="installationmanager.cpp" line="919"/> + <location filename="installationmanager.cpp" line="922"/> <source>failed to open archive</source> <translation type="unfinished"></translation> </message> <message> - <location filename="installationmanager.cpp" line="922"/> + <location filename="installationmanager.cpp" line="925"/> <source>unsupported archive type</source> <translation type="unfinished"></translation> </message> <message> - <location filename="installationmanager.cpp" line="925"/> + <location filename="installationmanager.cpp" line="928"/> <source>internal library error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="installationmanager.cpp" line="928"/> + <location filename="installationmanager.cpp" line="931"/> <source>archive invalid</source> <translation type="unfinished"></translation> </message> <message> - <location filename="installationmanager.cpp" line="932"/> + <location filename="installationmanager.cpp" line="935"/> <source>unknown archive error</source> <translation type="unfinished"></translation> </message> @@ -2051,7 +2051,7 @@ p, li { white-space: pre-wrap; } <location filename="mainwindow.ui" line="1061"/> <location filename="mainwindow.ui" line="1207"/> <location filename="mainwindow.cpp" line="4571"/> - <location filename="mainwindow.cpp" line="5548"/> + <location filename="mainwindow.cpp" line="5552"/> <source>Refresh</source> <translation type="unfinished"></translation> </message> @@ -2336,7 +2336,7 @@ p, li { white-space: pre-wrap; } <message> <location filename="mainwindow.ui" line="1659"/> <location filename="mainwindow.ui" line="1662"/> - <location filename="mainwindow.cpp" line="5574"/> + <location filename="mainwindow.cpp" line="5578"/> <source>Endorse Mod Organizer</source> <translation type="unfinished"></translation> </message> @@ -2782,7 +2782,7 @@ Please enter a name:</source> </message> <message> <location filename="mainwindow.cpp" line="3755"/> - <location filename="mainwindow.cpp" line="6205"/> + <location filename="mainwindow.cpp" line="6209"/> <source>Are you sure?</source> <translation type="unfinished"></translation> </message> @@ -3123,13 +3123,13 @@ You can also use online editors and converters instead.</source> </message> <message> <location filename="mainwindow.cpp" line="4688"/> - <location filename="mainwindow.cpp" line="6363"/> + <location filename="mainwindow.cpp" line="6367"/> <source>Enable selected</source> <translation type="unfinished"></translation> </message> <message> <location filename="mainwindow.cpp" line="4689"/> - <location filename="mainwindow.cpp" line="6364"/> + <location filename="mainwindow.cpp" line="6368"/> <source>Disable selected</source> <translation type="unfinished"></translation> </message> @@ -3205,13 +3205,13 @@ You can also use online editors and converters instead.</source> </message> <message> <location filename="mainwindow.cpp" line="4771"/> - <location filename="mainwindow.cpp" line="6416"/> + <location filename="mainwindow.cpp" line="6420"/> <source>Exception: </source> <translation type="unfinished"></translation> </message> <message> <location filename="mainwindow.cpp" line="4773"/> - <location filename="mainwindow.cpp" line="6418"/> + <location filename="mainwindow.cpp" line="6422"/> <source>Unknown exception</source> <translation type="unfinished"></translation> </message> @@ -3331,7 +3331,7 @@ You can also use online editors and converters instead.</source> </message> <message> <location filename="mainwindow.cpp" line="5272"/> - <location filename="mainwindow.cpp" line="6755"/> + <location filename="mainwindow.cpp" line="6759"/> <source>Set Priority</source> <translation type="unfinished"></translation> </message> @@ -3341,236 +3341,236 @@ You can also use online editors and converters instead.</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5439"/> + <location filename="mainwindow.cpp" line="5443"/> <source>Update available</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5474"/> + <location filename="mainwindow.cpp" line="5478"/> <source>&Execute</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5475"/> + <location filename="mainwindow.cpp" line="5479"/> <source>Execute with &VFS</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5477"/> + <location filename="mainwindow.cpp" line="5481"/> <source>&Open</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5478"/> + <location filename="mainwindow.cpp" line="5482"/> <source>Open with &VFS</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5519"/> + <location filename="mainwindow.cpp" line="5523"/> <source>&Add as Executable</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5482"/> + <location filename="mainwindow.cpp" line="5486"/> <source>Preview</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5532"/> + <location filename="mainwindow.cpp" line="5536"/> <source>Un-Hide</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5534"/> + <location filename="mainwindow.cpp" line="5538"/> <source>Hide</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5547"/> + <location filename="mainwindow.cpp" line="5551"/> <source>Write To File...</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5575"/> + <location filename="mainwindow.cpp" line="5579"/> <source>Do you want to endorse Mod Organizer on %1 now?</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5589"/> + <location filename="mainwindow.cpp" line="5593"/> <source>Abstain from Endorsing Mod Organizer</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5590"/> + <location filename="mainwindow.cpp" line="5594"/> <source>Are you sure you want to abstain from endorsing Mod Organizer 2? You will have to visit the mod page on the %1 Nexus site to change your mind.</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5681"/> + <location filename="mainwindow.cpp" line="5685"/> <source>Thank you for endorsing MO2! :)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5687"/> + <location filename="mainwindow.cpp" line="5691"/> <source>Please reconsider endorsing MO2 on Nexus!</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5951"/> + <location filename="mainwindow.cpp" line="5955"/> <source>Thank you!</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="5951"/> + <location filename="mainwindow.cpp" line="5955"/> <source>Thank you for your endorsement!</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6043"/> + <location filename="mainwindow.cpp" line="6047"/> <source>Mod ID %1 no longer seems to be available on Nexus.</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6045"/> + <location filename="mainwindow.cpp" line="6049"/> <source>Request to Nexus failed: %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6061"/> - <location filename="mainwindow.cpp" line="6123"/> + <location filename="mainwindow.cpp" line="6065"/> + <location filename="mainwindow.cpp" line="6127"/> <source>failed to read %1: %2</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6073"/> + <location filename="mainwindow.cpp" line="6077"/> <source>Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6073"/> + <location filename="mainwindow.cpp" line="6077"/> <source>failed to extract %1 (errorcode %2)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6105"/> + <location filename="mainwindow.cpp" line="6109"/> <source>Extract BSA</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6134"/> + <location filename="mainwindow.cpp" line="6138"/> <source>This archive contains invalid hashes. Some files may be broken.</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6180"/> + <location filename="mainwindow.cpp" line="6184"/> <source>Extract...</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6205"/> + <location filename="mainwindow.cpp" line="6209"/> <source>This will restart MO, continue?</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6283"/> + <location filename="mainwindow.cpp" line="6287"/> <source><Multiple></source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6347"/> + <location filename="mainwindow.cpp" line="6351"/> <source>Remove '%1' from the toolbar</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6368"/> + <location filename="mainwindow.cpp" line="6372"/> <source>Enable all</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6369"/> + <location filename="mainwindow.cpp" line="6373"/> <source>Disable all</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6390"/> + <location filename="mainwindow.cpp" line="6394"/> <source>Unlock load order</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6393"/> + <location filename="mainwindow.cpp" line="6397"/> <source>Lock load order</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6403"/> + <location filename="mainwindow.cpp" line="6407"/> <source>Open Origin in Explorer</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6408"/> + <location filename="mainwindow.cpp" line="6412"/> <source>Open Origin Info...</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6516"/> + <location filename="mainwindow.cpp" line="6520"/> <source>Backup of load order created</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6526"/> + <location filename="mainwindow.cpp" line="6530"/> <source>Choose backup to restore</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6539"/> + <location filename="mainwindow.cpp" line="6543"/> <source>No Backups</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6539"/> + <location filename="mainwindow.cpp" line="6543"/> <source>There are no backups to restore</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6564"/> - <location filename="mainwindow.cpp" line="6589"/> + <location filename="mainwindow.cpp" line="6568"/> + <location filename="mainwindow.cpp" line="6593"/> <source>Restore failed</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6565"/> - <location filename="mainwindow.cpp" line="6590"/> + <location filename="mainwindow.cpp" line="6569"/> + <location filename="mainwindow.cpp" line="6594"/> <source>Failed to restore the backup. Errorcode: %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6577"/> + <location filename="mainwindow.cpp" line="6581"/> <source>Backup of mod list created</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6660"/> + <location filename="mainwindow.cpp" line="6664"/> <source>A file with the same name has already been downloaded. What would you like to do?</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6662"/> + <location filename="mainwindow.cpp" line="6666"/> <source>Overwrite</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6663"/> + <location filename="mainwindow.cpp" line="6667"/> <source>Rename new file</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6664"/> + <location filename="mainwindow.cpp" line="6668"/> <source>Ignore file</source> <translation type="unfinished"></translation> </message> <message> - <location filename="mainwindow.cpp" line="6755"/> + <location filename="mainwindow.cpp" line="6759"/> <source>Set the priority of the selected mods</source> <translation type="unfinished"></translation> </message> |
