void TapeManager::removeTape( Tape* tape ) { emit sigTapeRemoved( tape ); // Remove the index file. QString filename = locateLocal( "appdata", tape->getID() ); unlink( QFile::encodeName(filename) ); _tapeIDs.remove( tape->getID() ); _tapes.remove( tape->getID() ); }
void TapeManager::removeTape( Tape* tape ) { emit sigTapeRemoved( tape ); // Remove the index file. QString fn = getenv( "HOME" ); fn += "/.kdat/"; fn += tape->getID(); unlink( fn.data() ); _tapeIDs.remove( tape->getID() ); _tapes.remove( tape->getID() ); }