Date: Mon, 27 Jul 2009 22:02:49 GMT From: Jonathan Anderson <jona@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 166659 for review Message-ID: <200907272202.n6RM2n0E048426@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=166659 Change 166659 by jona@jona-trustedbsd-belle-vmware on 2009/07/27 22:02:23 Only close the current file if we successfully open another one Affected files ... .. //depot/projects/trustedbsd/capabilities/src/tools/cap/sandbox_qt/TextEditor.cpp#6 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/tools/cap/sandbox_qt/TextEditor.cpp#6 (text+ko) ==== @@ -65,8 +65,6 @@ void TextEditor::open() { - close(); - struct ua_powerbox_options options; options.ui = UA_QT; options.operation = UA_OPEN_FILE; @@ -103,6 +101,8 @@ return; } + close(); + QFile file(this); file.open(fd, QFile::ReadWrite | QFile::Unbuffered); ui.text->setPlainText(file.readAll());
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907272202.n6RM2n0E048426>