~ubuntu-branches/ubuntu/quantal/minitube/quantal

« back to all changes in this revision

Viewing changes to src/ListModel.cpp

  • Committer: Package Import Robot
  • Author(s): Jakob Haufe
  • Date: 2011-12-07 02:50:04 UTC
  • mfrom: (1.2.8)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: package-import@ubuntu.com-20111207025004-pnau0mqh9qyc9wte
* New upstream version (Closes: #650622, #647212)
* Recreate debian/patches/disable-update-check
* Recreate debian/patches/proper-tempfiles

Show diffs side-by-side

added added

removed removed

Lines of Context:
203
203
 
204
204
        // save keyword
205
205
        QString query = searchParams->keywords();
206
 
        if (!query.isEmpty()) {
 
206
        if (!query.isEmpty() && !searchParams->isTransient()) {
207
207
            if (query.startsWith("http://")) {
208
208
                // Save the video title
209
209
                query += "|" + videos.first()->title();
219
219
 
220
220
        // save channel
221
221
        QString channel = searchParams->author();
222
 
        if (!channel.isEmpty()) {
 
222
        if (!channel.isEmpty() && !searchParams->isTransient()) {
223
223
            QSettings settings;
224
224
            QStringList channels = settings.value(recentChannelsKey).toStringList();
225
225
            channels.removeAll(channel);