equal
deleted
inserted
replaced
80 mFileList.clear(); |
80 mFileList.clear(); |
81 |
81 |
82 mIndexActionMap.clear(); |
82 mIndexActionMap.clear(); |
83 mAiwRequestList.clear(); |
83 mAiwRequestList.clear(); |
84 |
84 |
85 if ( mSharePopup ) |
|
86 { |
|
87 delete mSharePopup; |
|
88 mSharePopup = 0; |
|
89 } |
|
90 } |
85 } |
91 |
86 |
92 /** |
87 /** |
93 * Initialize and start the dialog |
88 * Initialize and start the dialog |
94 * |
89 * |
97 * |
92 * |
98 */ |
93 */ |
99 bool ShareUiPrivate::init(QStringList& fileList, bool embedded) |
94 bool ShareUiPrivate::init(QStringList& fileList, bool embedded) |
100 { |
95 { |
101 reset(); |
96 reset(); |
102 |
97 mIsEmbedded = embedded; |
103 // No input files |
98 // No input files |
104 if ( fileList.count() == 0 ) |
99 if ( fileList.count() == 0 ) |
105 { |
100 { |
106 showNote(LOC_NO_FILES); |
101 showNote(LOC_NO_FILES); |
107 return true; |
102 return true; |
278 if(request) |
273 if(request) |
279 { |
274 { |
280 QList<QVariant> args; |
275 QList<QVariant> args; |
281 QVariant fileList(mFileList); |
276 QVariant fileList(mFileList); |
282 args << fileList; |
277 args << fileList; |
|
278 request->setEmbedded(mIsEmbedded); |
283 request->setArguments(args); |
279 request->setArguments(args); |
284 } |
280 } |
285 } |
281 } |
286 |
282 |
287 /** |
283 /** |