Separate count and context for snippets in the snippets popup from the default values for the result list
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>516</width>
|
||||
<height>395</height>
|
||||
<width>640</width>
|
||||
<height>400</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
|
||||
@@ -50,6 +50,17 @@ void SnippetsW::init()
|
||||
if (m_source.isNull())
|
||||
return;
|
||||
|
||||
// Make title out of file name if none yet
|
||||
string titleOrFilename;
|
||||
string utf8fn;
|
||||
m_doc.getmeta(Rcl::Doc::keytt, &titleOrFilename);
|
||||
m_doc.getmeta(Rcl::Doc::keyfn, &utf8fn);
|
||||
if (titleOrFilename.empty()) {
|
||||
titleOrFilename = utf8fn;
|
||||
}
|
||||
|
||||
setWindowTitle(QString::fromUtf8(titleOrFilename.c_str()));
|
||||
|
||||
vector<pair<int, string> > vpabs;
|
||||
m_source->getAbstract(m_doc, vpabs);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user