src/lddocument.cpp

changeset 1240
cebb7ef54f41
parent 1236
861bf8ebb8ec
child 1241
0b5f84d2a68a
equal deleted inserted replaced
1239:f1cf9d2d463a 1240:cebb7ef54f41
221 221
222 if (nameComment->text().left (6) == "Name: ") 222 if (nameComment->text().left (6) == "Name: ")
223 { 223 {
224 QString newname = shortenName (path); 224 QString newname = shortenName (path);
225 nameComment->setText (format ("Name: %1", newname)); 225 nameComment->setText (format ("Name: %1", newname));
226 m_window->buildObjectList();
227 } 226 }
228 } 227 }
229 228
230 QByteArray data; 229 QByteArray data;
231 230
283 if (obj->type() == LDObjectType::Error) 282 if (obj->type() == LDObjectType::Error)
284 replaceWithFromString(obj, static_cast<LDError*> (obj)->contents()); 283 replaceWithFromString(obj, static_cast<LDError*> (obj)->contents());
285 } 284 }
286 285
287 m_needsRecache = true; 286 m_needsRecache = true;
288
289 if (this == m_window->currentDocument())
290 m_window->buildObjectList();
291 } 287 }
292 288
293 // ============================================================================= 289 // =============================================================================
294 // 290 //
295 void LDDocument::insertObject (int pos, LDObject* obj) 291 void LDDocument::insertObject (int pos, LDObject* obj)

mercurial