Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/models/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def stop
def save_kid_code(code, code_file_name)
codeFile = Qt::File.new(code_file_name)
if !codeFile.open(Qt::File::WriteOnly | Qt::File::Text)
Qt::MessageBox::warning(self, tr("KidsRuby Problem"),
Qt::MessageBox::warning(nil, tr("KidsRuby Problem"),
tr("Oh, uh! Cannot write file %s:\n%s" %
[ codeFile.fileName(), codeFile.errorString() ] ) )
return
Expand All @@ -47,6 +47,6 @@ def default_kid_code_location
end

def tmp_dir
Qt::Dir::tempPath
Qt::Dir::tempPath.force_encoding "utf-8"
end
end