@@ -1084,14 +1084,6 @@ void DownloadManager::queryInfo(int index)
1084
1084
QString ignore;
1085
1085
NexusInterface::interpretNexusFileName (fileName, ignore, info->m_FileInfo ->modID ,
1086
1086
info->m_AskIfNotFound );
1087
- if (!info->m_AskIfNotFound && (info->m_FileInfo ->modID < 0 ) ||
1088
- info->m_FileInfo ->gameName .isEmpty ()) {
1089
- // prevent re-querying (only possible with Nexus)
1090
- info->m_FileInfo ->repository = " " ;
1091
- setState (info, STATE_READY);
1092
- return ;
1093
- }
1094
-
1095
1087
if (info->m_FileInfo ->modID < 0 ) {
1096
1088
bool ok = false ;
1097
1089
int modId = QInputDialog::getInt (nullptr , tr (" Please enter the Nexus mod ID" ),
@@ -1106,6 +1098,12 @@ void DownloadManager::queryInfo(int index)
1106
1098
}
1107
1099
1108
1100
if (info->m_FileInfo ->gameName .isEmpty ()) {
1101
+ if (!info->m_AskIfNotFound ) {
1102
+ // in case the info couldn't be retrieved from Nexus due to connection issues,
1103
+ // don't create a meta file so you can query again after the issues are resolved.
1104
+ return ;
1105
+ }
1106
+
1109
1107
SelectionDialog selection (
1110
1108
tr (" Please select the source game code for %1" ).arg (getFileName (index )));
1111
1109
@@ -2172,6 +2170,11 @@ void DownloadManager::nxmRequestFailed(QString gameName, int modID, int fileID,
2172
2170
info->m_GamesToQuery .pop_front ();
2173
2171
setState (info, STATE_FETCHINGMODINFO_MD5);
2174
2172
return ;
2173
+ } else if (errorCode == 404 && !info->m_AskIfNotFound ) {
2174
+ // prevent re-querying (only possible with repository = "Nexus")
2175
+ info->m_FileInfo ->repository = " " ;
2176
+ setState (info, STATE_READY);
2177
+ return ;
2175
2178
} else {
2176
2179
info->m_State = STATE_READY;
2177
2180
queryInfo (index );
0 commit comments