~ubuntu-branches/ubuntu/quantal/ark/quantal

« back to all changes in this revision

Viewing changes to kerfuffle/addtoarchive.cpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2012-06-06 18:50:49 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20120606185049-z43lsy5wwp3wtrgt
Tags: 4:4.8.80-0ubuntu1
* Merge with Debian git repository, remaining changes:
  - Suggest instead of recommend p7zip-full
  - Add and install utilities-file-archiver.xpm
* New upstream beta release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * ark -- archiver for the KDE project
3
3
 *
4
4
 * Copyright (C) 2008 Harald Hvaal <haraldhv@stud.ntnu.no>
5
 
 * Copyright (C) 2009 Raphael Kubo da Costa <kubito@gmail.com>
 
5
 * Copyright (C) 2009 Raphael Kubo da Costa <rakuco@FreeBSD.org>
6
6
 *
7
7
 * Redistribution and use in source and binary forms, with or without
8
8
 * modification, are permitted provided that the following conditions
133
133
 
134
134
    Kerfuffle::Archive *archive;
135
135
    if (!m_filename.isEmpty()) {
136
 
        archive = Kerfuffle::factory(m_filename, m_mimeType);
 
136
        archive = Kerfuffle::Archive::create(m_filename, m_mimeType, this);
137
137
        kDebug() << "Set filename to " << m_filename;
138
138
    } else {
139
139
        if (m_autoFilenameSuffix.isEmpty()) {
162
162
        }
163
163
 
164
164
        kDebug() << "Autoset filename to "<< finalName;
165
 
        archive = Kerfuffle::factory(finalName, m_mimeType);
 
165
        archive = Kerfuffle::Archive::create(finalName, m_mimeType, this);
166
166
    }
167
167
 
168
168
    if (archive == NULL) {