Skip to content

Commit

Permalink
Fix crash in extracts.
Browse files Browse the repository at this point in the history
  • Loading branch information
xsacha committed Oct 23, 2014
1 parent 01dedce commit 11e4d33
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions qml/generic/Device.qml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Item {
font.bold: true
}
GroupBox {
visible: i.device !== null
title: qsTr("Tools")
RowLayout {
Button {
Expand Down
2 changes: 1 addition & 1 deletion src/autoloaderwriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class AutoloaderWriter: public QFile {
file.open(QIODevice::ReadOnly);
while (!file.atEnd())
{
QByteArray tmp = file.read(BUFFER_LEN);
QByteArray tmp = file.read(FAST_BUFFER_LEN);
if (tmp.size() < 0)
break;
_read += 100 * write(tmp);
Expand Down
3 changes: 2 additions & 1 deletion src/fs/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
// Utility function to quickly grab from stream
#define READ_TMP(x, y) x y; stream >> y;
// Maximum amount to store in RAM at any time between reading QIODevice and writing to disk.
#define BUFFER_LEN (qint64)409600
#define BUFFER_LEN (qint64)4096
#define FAST_BUFFER_LEN (qint64)409600

#ifdef _WIN32
#include "Windows.h"
Expand Down

0 comments on commit 11e4d33

Please sign in to comment.