Commit 3a7bba4f authored by Daniel Elstner's avatar Daniel Elstner
Browse files

:load_file_with_fallback): Get the UTF-8 encoded basename from the

* src/filetree.cc (FileTree::load_file_with_fallback): Get the
UTF-8 encoded basename from the filename column of the tree model
instead of stripping and converting fileinfo->fullname all over
again.
parent edf9db78
2004-06-01 Daniel Elstner <daniel.elstner@gmx.net>
* src/filetree.cc (FileTree::load_file_with_fallback): Get the
UTF-8 encoded basename from the filename column of the tree model
instead of stripping and converting fileinfo->fullname all over
again.
2004-06-01 Daniel Elstner <daniel.elstner@gmx.net>
* src/fileio.cc (load_file): Move the assignment of 'false' to
......
......@@ -1038,8 +1038,7 @@ void FileTree::load_file_with_fallback(const Gtk::TreeModel::iterator& iter,
}
catch (const ErrorBinaryFile&)
{
const Glib::ustring filename =
Util::filename_to_utf8_fallback(Glib::path_get_basename(fileinfo->fullname));
const Glib::ustring filename = (*iter)[FileTreeColumns::instance().filename];
fileinfo->buffer = FileBuffer::create_with_error_message(
render_icon(Gtk::Stock::DIALOG_ERROR, Gtk::ICON_SIZE_DIALOG),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment