equal
deleted
inserted
replaced
134 QListWidgetItem * curritem = DemosList->currentItem(); |
134 QListWidgetItem * curritem = DemosList->currentItem(); |
135 if (!curritem) |
135 if (!curritem) |
136 { |
136 { |
137 QMessageBox recordMsg(this); |
137 QMessageBox recordMsg(this); |
138 recordMsg.setIcon(QMessageBox::Warning); |
138 recordMsg.setIcon(QMessageBox::Warning); |
139 //: Title of an error message in the demo replay page |
139 recordMsg.setWindowTitle(QMessageBox::tr("Error")); |
140 recordMsg.setWindowTitle(QMessageBox::tr("Record Play - Error")); |
140 recordMsg.setText(QMessageBox::tr("Please select a file from the list.")); |
141 recordMsg.setText(QMessageBox::tr("Please select record from the list")); |
|
142 recordMsg.setWindowModality(Qt::WindowModal); |
141 recordMsg.setWindowModality(Qt::WindowModal); |
143 recordMsg.exec(); |
142 recordMsg.exec(); |
144 return ; |
143 return ; |
145 } |
144 } |
146 QFile rfile(curritem->data(Qt::UserRole).toString()); |
145 QFile rfile(curritem->data(Qt::UserRole).toString()); |
162 ok = rfile.rename(newfullname); |
161 ok = rfile.rename(newfullname); |
163 if(!ok) |
162 if(!ok) |
164 { |
163 { |
165 QMessageBox renameMsg(this); |
164 QMessageBox renameMsg(this); |
166 renameMsg.setIcon(QMessageBox::Warning); |
165 renameMsg.setIcon(QMessageBox::Warning); |
167 //: Title of an error message in the demo replay page |
166 renameMsg.setWindowTitle(QMessageBox::tr("Error")); |
168 renameMsg.setWindowTitle(QMessageBox::tr("Record Play - Error")); |
167 renameMsg.setText(QMessageBox::tr("Cannot rename file to %1.").arg(newfullname)); |
169 renameMsg.setText(QMessageBox::tr("Cannot rename to ") + newfullname); |
|
170 renameMsg.setWindowModality(Qt::WindowModal); |
168 renameMsg.setWindowModality(Qt::WindowModal); |
171 renameMsg.exec(); |
169 renameMsg.exec(); |
172 } |
170 } |
173 else |
171 else |
174 FillFromDir(recType); |
172 FillFromDir(recType); |
180 QListWidgetItem * curritem = DemosList->currentItem(); |
178 QListWidgetItem * curritem = DemosList->currentItem(); |
181 if (!curritem) |
179 if (!curritem) |
182 { |
180 { |
183 QMessageBox recordMsg(this); |
181 QMessageBox recordMsg(this); |
184 recordMsg.setIcon(QMessageBox::Warning); |
182 recordMsg.setIcon(QMessageBox::Warning); |
185 //: Title of an error message in the demo replay page |
183 recordMsg.setWindowTitle(QMessageBox::tr("Error")); |
186 recordMsg.setWindowTitle(QMessageBox::tr("Record Play - Error")); |
184 recordMsg.setText(QMessageBox::tr("Please select a file from the list.")); |
187 recordMsg.setText(QMessageBox::tr("Please select record from the list")); |
|
188 recordMsg.setWindowModality(Qt::WindowModal); |
185 recordMsg.setWindowModality(Qt::WindowModal); |
189 recordMsg.exec(); |
186 recordMsg.exec(); |
190 return ; |
187 return ; |
191 } |
188 } |
192 QFile rfile(curritem->data(Qt::UserRole).toString()); |
189 QFile rfile(curritem->data(Qt::UserRole).toString()); |
196 ok = rfile.remove(); |
193 ok = rfile.remove(); |
197 if(!ok) |
194 if(!ok) |
198 { |
195 { |
199 QMessageBox removeMsg(this); |
196 QMessageBox removeMsg(this); |
200 removeMsg.setIcon(QMessageBox::Warning); |
197 removeMsg.setIcon(QMessageBox::Warning); |
201 //: Title of an error message in the demo replay page |
198 removeMsg.setWindowTitle(QMessageBox::tr("Error")); |
202 removeMsg.setWindowTitle(QMessageBox::tr("Record Play - Error")); |
199 removeMsg.setText(QMessageBox::tr("Cannot delete file %1.").arg(rfile.fileName())); |
203 removeMsg.setText(QMessageBox::tr("Cannot delete file ") + rfile.fileName()); |
|
204 removeMsg.setWindowModality(Qt::WindowModal); |
200 removeMsg.setWindowModality(Qt::WindowModal); |
205 removeMsg.exec(); |
201 removeMsg.exec(); |
206 } |
202 } |
207 else |
203 else |
208 { |
204 { |