Use isEmpty() within SampleClipView::updateSample
This commit is contained in:
@@ -60,9 +60,8 @@ void SampleClipView::updateSample()
|
||||
update();
|
||||
// set tooltip to filename so that user can see what sample this
|
||||
// sample-clip contains
|
||||
setToolTip(m_clip->m_sample->sampleFile() != "" ?
|
||||
PathUtil::toAbsolute(m_clip->m_sample->sampleFile()) :
|
||||
tr( "Double-click to open sample" ) );
|
||||
setToolTip(!m_clip->m_sample->sampleFile().isEmpty() ? PathUtil::toAbsolute(m_clip->m_sample->sampleFile())
|
||||
: tr("Double-click to open sample"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user