summarylogtreecommitdiffstats
path: root/xiinstruments.patch
diff options
context:
space:
mode:
Diffstat (limited to 'xiinstruments.patch')
-rw-r--r--xiinstruments.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/xiinstruments.patch b/xiinstruments.patch
deleted file mode 100644
index d1f049ab73f4..000000000000
--- a/xiinstruments.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-diff --git a/Qt/Qt_sample_requester_widget_callbacks.h b/Qt/Qt_sample_requester_widget_callbacks.h
-index 9ee2158be..67d58e40d 100644
---- a/Qt/Qt_sample_requester_widget_callbacks.h
-+++ b/Qt/Qt_sample_requester_widget_callbacks.h
-@@ -126,20 +126,22 @@ static QString get_sample_filename_display_string(QFileInfo file_info, int width
- //printf("Trying to open %s\n",file_info.absoluteFilePath().toUtf8().constData());
- SNDFILE *sndfile = radium_sf_open(full_filename, SFM_READ, &sf_info);
-
-- if(sndfile==NULL)
-- return QString();
--
-- num_channels = sf_info.channels;
-+ if(sndfile==NULL){
-+ num_channels = -1;
-+ }else{
-+ num_channels = sf_info.channels;
-
-- sf_close(sndfile);
-+ sf_close(sndfile);
-+ }
- }
-
- int64_t num_bytes = file_info.size();
-
- //const QFontMetrics fn = QFontMetrics(font);
-- QString ret =
-- file_info.fileName().leftJustified(k_filename_len-2,'.') +
-- ".." + QString::number(num_channels)+"ch,";
-+ QString ret = file_info.fileName().leftJustified(k_filename_len-2,'.');
-+
-+ if (num_channels >= 0)
-+ ret += ".." + QString::number(num_channels)+"ch,";
-
- {
- QString size_string;