Hi!<div>I've been getting a crash on a system using master and kdelibs trunk when starting kdevelop with a session that already had files in it.</div><div><br></div><div>I've been trying to debug the problem a little and I've found out the problem goes that way:</div>
<div>- The same file happens to be opened two times for some reason (dunno what), the file that's in the workingset, of course.</div><div>- the first one goes to check it's mimetype using the KIO::MimetypeJob</div>
<div>- The exec function somehow tries to add again the same file we were adding, I guess it's because there's some qApp->processEvents somewhere, not sure why.</div><div>- The file tries to be opened again.</div>
<div>- When the second file is created, we hit: Q_ASSERT(!documents.contains(url) || documents[url]==doc); </div><div><br></div><div>Any clue on how to fix that?</div><div>I'm not sure why does that happen, isn't ::exec supposed to create a new event loop?</div>
<div><br></div><div>A not-so-different problem: why are files added two times?</div><div><br></div><div>Thanks!</div><div>Aleix</div>