summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKrzysztof Starecki <krzysztof.starecki@gmail.com>2018-12-31 20:45:12 +0100
committerKrzysztof Starecki <krzysztof.starecki@gmail.com>2018-12-31 20:45:12 +0100
commite7c59b26e1c04251c38df038e93990a29ae09808 (patch)
tree788e5d792bc76e460c10a5c14d48fbdd73659d23 /src
parentfd6345cd4e49a135dd833e8567cb5bbe6887ebb9 (diff)
Fix nullptr bug with download meta info
Diffstat (limited to 'src')
-rw-r--r--src/downloadlistwidget.cpp3
-rw-r--r--src/downloadlistwidget.h2
-rw-r--r--src/organizer_en.ts164
3 files changed, 85 insertions, 84 deletions
diff --git a/src/downloadlistwidget.cpp b/src/downloadlistwidget.cpp
index 6c7447c8..393a8a98 100644
--- a/src/downloadlistwidget.cpp
+++ b/src/downloadlistwidget.cpp
@@ -91,7 +91,8 @@ void DownloadListWidget::setSourceModel(DownloadList *sourceModel)
void DownloadListWidget::setMetaDisplay(bool metaDisplay)
{
- m_SourceModel->setMetaDisplay(metaDisplay);
+ if (m_SourceModel != nullptr)
+ m_SourceModel->setMetaDisplay(metaDisplay);
}
void DownloadListWidget::onDoubleClick(const QModelIndex &index)
diff --git a/src/downloadlistwidget.h b/src/downloadlistwidget.h
index c8d4fe6e..bfe504aa 100644
--- a/src/downloadlistwidget.h
+++ b/src/downloadlistwidget.h
@@ -98,7 +98,7 @@ private slots:
private:
DownloadManager *m_Manager;
- DownloadList *m_SourceModel;
+ DownloadList *m_SourceModel = 0;
int m_ContextRow;
};
diff --git a/src/organizer_en.ts b/src/organizer_en.ts
index 48936ca9..8576b392 100644
--- a/src/organizer_en.ts
+++ b/src/organizer_en.ts
@@ -390,145 +390,145 @@ p, li { white-space: pre-wrap; }
<context>
<name>DownloadListWidget</name>
<message>
- <location filename="downloadlistwidget.cpp" line="109"/>
+ <location filename="downloadlistwidget.cpp" line="120"/>
<source>Install</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="111"/>
+ <location filename="downloadlistwidget.cpp" line="122"/>
<source>Query Info</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="113"/>
+ <location filename="downloadlistwidget.cpp" line="124"/>
<source>Visit on Nexus</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="114"/>
+ <location filename="downloadlistwidget.cpp" line="125"/>
<source>Open File</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="115"/>
- <location filename="downloadlistwidget.cpp" line="127"/>
- <location filename="downloadlistwidget.cpp" line="132"/>
+ <location filename="downloadlistwidget.cpp" line="126"/>
+ <location filename="downloadlistwidget.cpp" line="138"/>
+ <location filename="downloadlistwidget.cpp" line="143"/>
<source>Show in Folder</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="119"/>
<location filename="downloadlistwidget.cpp" line="130"/>
+ <location filename="downloadlistwidget.cpp" line="141"/>
<source>Delete</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="121"/>
+ <location filename="downloadlistwidget.cpp" line="132"/>
<source>Un-Hide</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="123"/>
+ <location filename="downloadlistwidget.cpp" line="134"/>
<source>Hide</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="125"/>
+ <location filename="downloadlistwidget.cpp" line="136"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="126"/>
+ <location filename="downloadlistwidget.cpp" line="137"/>
<source>Pause</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="131"/>
+ <location filename="downloadlistwidget.cpp" line="142"/>
<source>Resume</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="137"/>
+ <location filename="downloadlistwidget.cpp" line="148"/>
<source>Delete Installed...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="138"/>
+ <location filename="downloadlistwidget.cpp" line="149"/>
<source>Delete Uninstalled...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="139"/>
+ <location filename="downloadlistwidget.cpp" line="150"/>
<source>Delete All...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="143"/>
+ <location filename="downloadlistwidget.cpp" line="154"/>
<source>Hide Installed...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="144"/>
+ <location filename="downloadlistwidget.cpp" line="155"/>
<source>Hide Uninstalled...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="145"/>
+ <location filename="downloadlistwidget.cpp" line="156"/>
<source>Hide All...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="147"/>
+ <location filename="downloadlistwidget.cpp" line="158"/>
<source>Un-Hide All...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="165"/>
- <location filename="downloadlistwidget.cpp" line="220"/>
- <location filename="downloadlistwidget.cpp" line="229"/>
- <location filename="downloadlistwidget.cpp" line="238"/>
+ <location filename="downloadlistwidget.cpp" line="176"/>
+ <location filename="downloadlistwidget.cpp" line="231"/>
+ <location filename="downloadlistwidget.cpp" line="240"/>
+ <location filename="downloadlistwidget.cpp" line="249"/>
<source>Delete Files?</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="166"/>
+ <location filename="downloadlistwidget.cpp" line="177"/>
<source>This will permanently delete the selected download.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="221"/>
+ <location filename="downloadlistwidget.cpp" line="232"/>
<source>This will remove all finished downloads from this list and from disk.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="230"/>
+ <location filename="downloadlistwidget.cpp" line="241"/>
<source>This will remove all installed downloads from this list and from disk.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="239"/>
+ <location filename="downloadlistwidget.cpp" line="250"/>
<source>This will remove all uninstalled downloads from this list and from disk.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="247"/>
- <location filename="downloadlistwidget.cpp" line="256"/>
- <location filename="downloadlistwidget.cpp" line="265"/>
+ <location filename="downloadlistwidget.cpp" line="258"/>
+ <location filename="downloadlistwidget.cpp" line="267"/>
+ <location filename="downloadlistwidget.cpp" line="276"/>
<source>Are you sure?</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="248"/>
+ <location filename="downloadlistwidget.cpp" line="259"/>
<source>This will remove all finished downloads from this list (but NOT from disk).</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="257"/>
+ <location filename="downloadlistwidget.cpp" line="268"/>
<source>This will remove all installed downloads from this list (but NOT from disk).</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="downloadlistwidget.cpp" line="266"/>
+ <location filename="downloadlistwidget.cpp" line="277"/>
<source>This will remove all uninstalled downloads from this list (but NOT from disk).</source>
<translation type="unfinished"></translation>
</message>
@@ -2276,7 +2276,7 @@ Please enter a name:</source>
</message>
<message>
<location filename="mainwindow.cpp" line="3446"/>
- <location filename="mainwindow.cpp" line="5463"/>
+ <location filename="mainwindow.cpp" line="5466"/>
<source>Are you sure?</source>
<translation type="unfinished"></translation>
</message>
@@ -2603,13 +2603,13 @@ You can also use online editors and converters instead.</source>
</message>
<message>
<location filename="mainwindow.cpp" line="4326"/>
- <location filename="mainwindow.cpp" line="5574"/>
+ <location filename="mainwindow.cpp" line="5577"/>
<source>Enable selected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4327"/>
- <location filename="mainwindow.cpp" line="5575"/>
+ <location filename="mainwindow.cpp" line="5578"/>
<source>Disable selected</source>
<translation type="unfinished"></translation>
</message>
@@ -2670,13 +2670,13 @@ You can also use online editors and converters instead.</source>
</message>
<message>
<location filename="mainwindow.cpp" line="4388"/>
- <location filename="mainwindow.cpp" line="5622"/>
+ <location filename="mainwindow.cpp" line="5625"/>
<source>Exception: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4390"/>
- <location filename="mainwindow.cpp" line="5624"/>
+ <location filename="mainwindow.cpp" line="5627"/>
<source>Unknown exception</source>
<translation type="unfinished"></translation>
</message>
@@ -2814,7 +2814,7 @@ Click OK to restart MO now.</source>
</message>
<message>
<location filename="mainwindow.cpp" line="4935"/>
- <location filename="mainwindow.cpp" line="6236"/>
+ <location filename="mainwindow.cpp" line="6239"/>
<source>Set Priority</source>
<translation type="unfinished"></translation>
</message>
@@ -2879,196 +2879,196 @@ Click OK to restart MO now.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5272"/>
+ <location filename="mainwindow.cpp" line="5275"/>
<source>Thank you!</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5272"/>
+ <location filename="mainwindow.cpp" line="5275"/>
<source>Thank you for your endorsement!</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5307"/>
+ <location filename="mainwindow.cpp" line="5310"/>
<source>Request to Nexus failed: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5322"/>
- <location filename="mainwindow.cpp" line="5384"/>
+ <location filename="mainwindow.cpp" line="5325"/>
+ <location filename="mainwindow.cpp" line="5387"/>
<source>failed to read %1: %2</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5334"/>
- <location filename="mainwindow.cpp" line="5812"/>
+ <location filename="mainwindow.cpp" line="5337"/>
+ <location filename="mainwindow.cpp" line="5815"/>
<source>Error</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5334"/>
+ <location filename="mainwindow.cpp" line="5337"/>
<source>failed to extract %1 (errorcode %2)</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5366"/>
+ <location filename="mainwindow.cpp" line="5369"/>
<source>Extract BSA</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5395"/>
+ <location filename="mainwindow.cpp" line="5398"/>
<source>This archive contains invalid hashes. Some files may be broken.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5441"/>
+ <location filename="mainwindow.cpp" line="5444"/>
<source>Extract...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5464"/>
+ <location filename="mainwindow.cpp" line="5467"/>
<source>This will restart MO, continue?</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5511"/>
+ <location filename="mainwindow.cpp" line="5514"/>
<source>Edit Categories...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5512"/>
+ <location filename="mainwindow.cpp" line="5515"/>
<source>Deselect filter</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5563"/>
+ <location filename="mainwindow.cpp" line="5566"/>
<source>Remove</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5579"/>
+ <location filename="mainwindow.cpp" line="5582"/>
<source>Enable all</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5580"/>
+ <location filename="mainwindow.cpp" line="5583"/>
<source>Disable all</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5601"/>
+ <location filename="mainwindow.cpp" line="5604"/>
<source>Unlock load order</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5604"/>
+ <location filename="mainwindow.cpp" line="5607"/>
<source>Lock load order</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5608"/>
+ <location filename="mainwindow.cpp" line="5611"/>
<source>Open Origin in Explorer</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5615"/>
+ <location filename="mainwindow.cpp" line="5618"/>
<source>Open Origin Info...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5758"/>
+ <location filename="mainwindow.cpp" line="5761"/>
<source>depends on missing &quot;%1&quot;</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5762"/>
+ <location filename="mainwindow.cpp" line="5765"/>
<source>incompatible with &quot;%1&quot;</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5788"/>
+ <location filename="mainwindow.cpp" line="5791"/>
<source>Please wait while LOOT is running</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5885"/>
+ <location filename="mainwindow.cpp" line="5888"/>
<source>loot failed. Exit code was: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5907"/>
+ <location filename="mainwindow.cpp" line="5910"/>
<source>failed to start loot</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5910"/>
+ <location filename="mainwindow.cpp" line="5913"/>
<source>failed to run loot: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5914"/>
+ <location filename="mainwindow.cpp" line="5917"/>
<source>Errors occured</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5961"/>
+ <location filename="mainwindow.cpp" line="5964"/>
<source>Backup of load order created</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5971"/>
+ <location filename="mainwindow.cpp" line="5974"/>
<source>Choose backup to restore</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5984"/>
+ <location filename="mainwindow.cpp" line="5987"/>
<source>No Backups</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="5984"/>
+ <location filename="mainwindow.cpp" line="5987"/>
<source>There are no backups to restore</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="6005"/>
- <location filename="mainwindow.cpp" line="6027"/>
+ <location filename="mainwindow.cpp" line="6008"/>
+ <location filename="mainwindow.cpp" line="6030"/>
<source>Restore failed</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="6006"/>
- <location filename="mainwindow.cpp" line="6028"/>
+ <location filename="mainwindow.cpp" line="6009"/>
+ <location filename="mainwindow.cpp" line="6031"/>
<source>Failed to restore the backup. Errorcode: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="6017"/>
+ <location filename="mainwindow.cpp" line="6020"/>
<source>Backup of modlist created</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="6123"/>
+ <location filename="mainwindow.cpp" line="6126"/>
<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="6125"/>
+ <location filename="mainwindow.cpp" line="6128"/>
<source>Overwrite</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="6126"/>
+ <location filename="mainwindow.cpp" line="6129"/>
<source>Rename new file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="6127"/>
+ <location filename="mainwindow.cpp" line="6130"/>
<source>Ignore file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="6236"/>
+ <location filename="mainwindow.cpp" line="6239"/>
<source>Set the priority of the selected mods</source>
<translation type="unfinished"></translation>
</message>