@@ -158,43 +158,47 @@ CaptureContext::CaptureContext(PersistantConfig &cfg) : m_Config(cfg)
158
158
159
159
bool add_report = false ;
160
160
161
- if (CrashDialog::HasCaptureReady (m_Config ))
161
+ if (m_MainWindow-> ErrorReportsAllowed ( ))
162
162
{
163
- text += tr (
164
- " If you think this may be a RenderDoc bug please click the button below to report it, "
165
- " but note that this will require you to upload the capture for reproduction as "
166
- " otherwise it is impossible to tell what the problem may be." );
167
-
168
- add_report = true ;
169
- }
170
- else if (CrashDialog::CaptureTooLarge (m_Config))
171
- {
172
- text = tr (" <html>%1<br><br>"
173
- " Your capture is too lage to upload as a crash report so this can't be "
174
- " automatically reported. "
175
- " Please email me at <a "
176
- " href=\" mailto:[email protected] ?subject=RenderDoc%20Unrecoverable%20error\" >"
177
- " [email protected] </a> with information and I can help investigate.</html>" )
178
- .arg (text);
179
- }
180
- else
181
- {
182
- text += tr (" The capture must be saved locally if you want to report this as a bug. " );
183
-
184
- if (Replay ().CurrentRemote ().IsConnected ())
163
+ if (CrashDialog::HasCaptureReady (m_Config))
185
164
{
186
165
text +=
187
- tr (" Before closing the capture you can save it to disk and manually report a bug. "
188
- " Please include the capture, or else it will be impossible to tell what the "
189
- " problem may be." );
166
+ tr (" If you think this may be a RenderDoc bug please click the button below to report "
167
+ " it, "
168
+ " but note that this will require you to upload the capture for reproduction as "
169
+ " otherwise it is impossible to tell what the problem may be." );
170
+
171
+ add_report = true ;
172
+ }
173
+ else if (CrashDialog::CaptureTooLarge (m_Config))
174
+ {
175
+ text = tr (" <html>%1<br><br>"
176
+ " Your capture is too lage to upload as a crash report so this can't be "
177
+ " automatically reported. "
178
+ " Please email me at <a "
179
+ " href=\" mailto:[email protected] ?subject=RenderDoc%20Unrecoverable%20error\" >"
180
+ " [email protected] </a> with information and I can help investigate.</html>" )
181
+ .arg (text);
190
182
}
191
183
else
192
184
{
193
- text += tr (" You will need to reconnect to the remote server to save the capture." );
185
+ text += tr (" The capture must be saved locally if you want to report this as a bug. " );
186
+
187
+ if (Replay ().CurrentRemote ().IsConnected ())
188
+ {
189
+ text +=
190
+ tr (" Before closing the capture you can save it to disk and manually report a bug. "
191
+ " Please include the capture, or else it will be impossible to tell what the "
192
+ " problem may be." );
193
+ }
194
+ else
195
+ {
196
+ text += tr (" You will need to reconnect to the remote server to save the capture." );
197
+ }
194
198
}
195
199
}
196
200
197
- QMessageBox mb (QMessageBox::Critical, title, text, QMessageBox::Ok, m_MainWindow);
201
+ QMessageBox mb (QMessageBox::Critical, title, text. trimmed () , QMessageBox::Ok, m_MainWindow);
198
202
mb.setDefaultButton (QMessageBox::NoButton);
199
203
QPushButton *report = NULL ;
200
204
if (add_report)
0 commit comments